@@ -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; }