RFR: 8202994: Add support for undoing last TLAB allocation
per.liden at oracle.com
Fri May 11 11:36:05 UTC 2018
This patch adds ThreadLocalAllocBuffer::undo_allocate() to undo the
allocation made by the last call to ThreadLocalAllocBuffer::allocate().
In ZGC, when a Java thread relocates an object it can use its current
TLAB for the new object allocation. However, a relocation can later
fail, if some other thread won the race to update the forwarding
information. In those cases, the loosing thread wants to undo its last
TLAB allocation. This is very similar to the existing
PLAB::undo_allocation(), which does the same thing but for PLABs.
More information about the hotspot-gc-dev