8330000: ZGC: ZObjArrayAllocator may unnecessarily clear TypeArrays twice
Reviewed-by: stefank, eosterlund
This commit is contained in:
parent
f778642613
commit
8817ba450c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user