< prev index next >

src/hotspot/share/gc/shared/gcVMOperations.cpp

Print this page

        

@@ -161,11 +161,11 @@
   SvcGCMarker sgcm(SvcGCMarker::MINOR);
 
   GenCollectedHeap* gch = GenCollectedHeap::heap();
   GCCauseSetter gccs(gch, _gc_cause);
   _result = gch->satisfy_failed_allocation(_word_size, _tlab);
-  assert(_result == NULL || gch->is_in_reserved(_result), "result not in heap");
+  assert(gch->is_in_reserved_or_null(_result), "result not in heap");
 
   if (_result == NULL && GCLocker::is_active_and_needs_gc()) {
     set_gc_locked();
   }
 }
< prev index next >