src/hotspot/share/gc/g1/g1OopClosures.inline.hpp
changeset 58015 dd84de796f2c
parent 57777 90ead0febf56
child 58229 722a19a45994
--- a/src/hotspot/share/gc/g1/g1OopClosures.inline.hpp	Thu Sep 05 08:26:44 2019 +0200
+++ b/src/hotspot/share/gc/g1/g1OopClosures.inline.hpp	Thu Sep 05 08:26:49 2019 +0200
@@ -115,8 +115,7 @@
   G1CollectedHeap* g1h = G1CollectedHeap::heap();
   // can't do because of races
   // assert(oopDesc::is_oop_or_null(obj), "expected an oop");
-  assert(check_obj_alignment(obj), "not oop aligned");
-  assert(g1h->is_in_reserved(obj), "must be in heap");
+  g1h->check_oop_location(obj);
 
   HeapRegion* from = g1h->heap_region_containing(p);