--- 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();