< prev index next >

src/hotspot/share/gc/shared/memAllocator.cpp

Print this page

        

@@ -368,10 +368,13 @@
   {
     Allocation allocation(*this, &obj);
     HeapWord* mem = mem_allocate(allocation);
     if (mem != NULL) {
       obj = initialize(mem);
+    } else {
+      // Keep the unhandled oop detector happy.
+      obj = NULL;
     }
   }
   return obj;
 }
 
< prev index next >