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