< prev index next >

src/hotspot/share/memory/allocation.hpp

Print this page
*** 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 <MEMFLAGS F> class CHeapObj ALLOCATION_SUPER_CLASS_SPEC {
   public:
    ALWAYSINLINE void* operator new(size_t size) throw() {
< prev index next >