mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-02 15:20:27 +00:00
8386707: [BACKOUT] ZGC: Incorrect object undo in relocation race for relocation workers
Reviewed-by: stefank, aboldtch
This commit is contained in:
parent
8de834cd8a
commit
cba3017047
@ -642,7 +642,7 @@ private:
|
||||
const zaddress to_addr = _forwarding->insert(from_addr, allocated_addr, &cursor);
|
||||
if (to_addr != allocated_addr) {
|
||||
// Already relocated, undo allocation
|
||||
_allocator->undo_alloc_object(to_page, allocated_addr, size);
|
||||
_allocator->undo_alloc_object(to_page, to_addr, size);
|
||||
increase_other_forwarded(size);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user