src/hotspot/share/gc/shared/gcVMOperations.cpp
changeset 58015 dd84de796f2c
parent 54786 ebf733a324d4
child 58063 bdf136b8ae0e
child 59053 ba6c248cae19
--- a/src/hotspot/share/gc/shared/gcVMOperations.cpp	Thu Sep 05 08:26:44 2019 +0200
+++ b/src/hotspot/share/gc/shared/gcVMOperations.cpp	Thu Sep 05 08:26:49 2019 +0200
@@ -163,7 +163,7 @@
   GenCollectedHeap* gch = GenCollectedHeap::heap();
   GCCauseSetter gccs(gch, _gc_cause);
   _result = gch->satisfy_failed_allocation(_word_size, _tlab);
-  assert(gch->is_in_reserved_or_null(_result), "result not in heap");
+  assert(_result == NULL || gch->is_in_reserved(_result), "result not in heap");
 
   if (_result == NULL && GCLocker::is_active_and_needs_gc()) {
     set_gc_locked();