From 80c54b484f89be9d26066da94ada55bcd3d03fdc Mon Sep 17 00:00:00 2001 From: Albert Mingkun Yang Date: Wed, 3 Apr 2024 10:30:19 +0000 Subject: [PATCH] 8328932: Parallel: Proper partial object setup in fill_dense_prefix_end Reviewed-by: tschatzl, gli --- src/hotspot/share/gc/parallel/psParallelCompact.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hotspot/share/gc/parallel/psParallelCompact.cpp b/src/hotspot/share/gc/parallel/psParallelCompact.cpp index 8aa95226525..3abae8cb22a 100644 --- a/src/hotspot/share/gc/parallel/psParallelCompact.cpp +++ b/src/hotspot/share/gc/parallel/psParallelCompact.cpp @@ -1147,6 +1147,7 @@ void PSParallelCompact::fill_dense_prefix_end(SpaceId id) { _mark_bitmap.mark_obj(obj_beg, obj_len); _summary_data.addr_to_region_ptr(obj_beg)->add_live_obj(1); region_after_dense_prefix->set_partial_obj_size(1); + region_after_dense_prefix->set_partial_obj_addr(obj_beg); assert(start_array(id) != nullptr, "sanity"); start_array(id)->update_for_block(obj_beg, obj_beg + obj_len); }