Add support for undoing last TLAB allocation

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: 11
    • Component/s: hotspot
    • None
    • gc
    • b14

        Add 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 PLAB::undo_allocation(), which does the same thing but for PLABs.

              Assignee:
              Per Liden (Inactive)
              Reporter:
              Per Liden (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: