diff a/src/hotspot/share/gc/z/zLiveMap.cpp b/src/hotspot/share/gc/z/zLiveMap.cpp --- a/src/hotspot/share/gc/z/zLiveMap.cpp +++ b/src/hotspot/share/gc/z/zLiveMap.cpp @@ -38,10 +38,11 @@ : _segment_size((object_max_count == 1 ? 1u : (object_max_count / NumSegments)) * BitsPerObject), _segment_shift(log2i_exact(_segment_size)), _seqnum(0), _live_objects(0), _live_bytes(0), + _will_expand_objects(0), _segment_live_bits(0), _segment_claim_bits(0), _bitmap(0) {} void ZLiveMap::initialize_bitmap() { @@ -69,10 +70,11 @@ // This thread claimed the initialization // Reset marking information _live_bytes.store_relaxed(0u); _live_objects.store_relaxed(0u); + _will_expand_objects.store_relaxed(0u); // Clear segment claimed/live bits segment_live_bits().clear(); segment_claim_bits().clear();