--- old/hotspot/src/share/vm/memory/allocation.hpp 2009-08-01 04:11:52.600162257 +0100 +++ new/hotspot/src/share/vm/memory/allocation.hpp 2009-08-01 04:11:52.518667948 +0100 @@ -341,6 +341,12 @@ DEBUG_ONLY(((ResourceObj *)res)->_allocation = RESOURCE_AREA;) return res; } + void* operator new(size_t size, void* where, allocation_type type) { + void* res = where; + // Set allocation type in the resource object + DEBUG_ONLY(((ResourceObj *)res)->_allocation = type;) + return res; + } void operator delete(void* p); };