diff a/src/hotspot/share/memory/allocation.hpp b/src/hotspot/share/memory/allocation.hpp --- a/src/hotspot/share/memory/allocation.hpp +++ b/src/hotspot/share/memory/allocation.hpp @@ -182,10 +182,11 @@ char* ReallocateHeap(char *old, size_t size, MEMFLAGS flag, AllocFailType alloc_failmode = AllocFailStrategy::EXIT_OOM); +// handles NULL pointers void FreeHeap(void* p); template class CHeapObj ALLOCATION_SUPER_CLASS_SPEC { public: ALWAYSINLINE void* operator new(size_t size) throw() {