Skip to content

Commit

Permalink
8330000: ZGC: ZObjArrayAllocator may unnecessarily clear TypeArrays t…
Browse files Browse the repository at this point in the history
…wice

Reviewed-by: stefank, eosterlund
  • Loading branch information
xmas92 committed Apr 11, 2024
1 parent f778642 commit 8817ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/z/zObjArrayAllocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ oop ZObjArrayAllocator::initialize(HeapWord* mem) const {
yield_for_safepoint();

// Deal with safepoints
if (!seen_gc_safepoint && gc_safepoint_happened()) {
if (is_reference_type(element_type) && !seen_gc_safepoint && gc_safepoint_happened()) {
// The first time we observe a GC safepoint in the yield point,
// we have to restart processing with 11 remembered bits.
seen_gc_safepoint = true;
Expand Down

0 comments on commit 8817ba4

Please sign in to comment.