--- old/src/hotspot/share/gc/shared/memAllocator.cpp 2019-07-17 11:42:53.949311141 -0400 +++ new/src/hotspot/share/gc/shared/memAllocator.cpp 2019-07-17 11:42:53.729311149 -0400 @@ -370,6 +370,9 @@ HeapWord* mem = mem_allocate(allocation); if (mem != NULL) { obj = initialize(mem); + } else { + // Keep the unhandled oop detector happy. + obj = NULL; } } return obj;