mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8336944: Shenandoah: Should only relativize stack chunks for successful evacuations
Reviewed-by: shade, ysr
This commit is contained in:
parent
8efcb40c47
commit
2f2223d752
1 changed files with 1 additions and 2 deletions
|
@ -1178,11 +1178,10 @@ oop ShenandoahHeap::evacuate_object(oop p, Thread* thread) {
|
|||
|
||||
// Try to install the new forwarding pointer.
|
||||
oop copy_val = cast_to_oop(copy);
|
||||
ContinuationGCSupport::relativize_stack_chunk(copy_val);
|
||||
|
||||
oop result = ShenandoahForwarding::try_update_forwardee(p, copy_val);
|
||||
if (result == copy_val) {
|
||||
// Successfully evacuated. Our copy is now the public one!
|
||||
ContinuationGCSupport::relativize_stack_chunk(copy_val);
|
||||
shenandoah_assert_correct(nullptr, copy_val);
|
||||
return copy_val;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue