src/hotspot/share/gc/shared/memAllocator.cpp
changeset 55734 51f5b4c29626
parent 54784 31b27600b5db
child 57501 a297f7ab46c3
equal deleted inserted replaced
55733:9cfb9387a9e8 55734:51f5b4c29626
   368   {
   368   {
   369     Allocation allocation(*this, &obj);
   369     Allocation allocation(*this, &obj);
   370     HeapWord* mem = mem_allocate(allocation);
   370     HeapWord* mem = mem_allocate(allocation);
   371     if (mem != NULL) {
   371     if (mem != NULL) {
   372       obj = initialize(mem);
   372       obj = initialize(mem);
       
   373     } else {
       
   374       // The unhandled oop detector will poison local variable obj,
       
   375       // so reset it to NULL if mem is NULL.
       
   376       obj = NULL;
   373     }
   377     }
   374   }
   378   }
   375   return obj;
   379   return obj;
   376 }
   380 }
   377 
   381