From 4ab77ac60df78eedb16ebe142a51f703165e808d Mon Sep 17 00:00:00 2001 From: Thomas Schatzl Date: Mon, 11 Jul 2022 07:36:21 +0000 Subject: [PATCH] 8290017: Directly call HeapRegion::block_start in G1CMObjArrayProcessor::process_slice Reviewed-by: ayang, iwalulya --- src/hotspot/share/gc/g1/g1ConcurrentMarkObjArrayProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/gc/g1/g1ConcurrentMarkObjArrayProcessor.cpp b/src/hotspot/share/gc/g1/g1ConcurrentMarkObjArrayProcessor.cpp index 2cac3c4b61b..895fa346b5d 100644 --- a/src/hotspot/share/gc/g1/g1ConcurrentMarkObjArrayProcessor.cpp +++ b/src/hotspot/share/gc/g1/g1ConcurrentMarkObjArrayProcessor.cpp @@ -59,7 +59,7 @@ size_t G1CMObjArrayProcessor::process_slice(HeapWord* slice) { HeapWord* const start_address = r->is_humongous() ? r->humongous_start_region()->bottom() : - g1h->block_start(slice); + r->block_start(slice); assert(cast_to_oop(start_address)->is_objArray(), "Address " PTR_FORMAT " does not refer to an object array ", p2i(start_address)); assert(start_address < slice,