Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8202994

Add support for undoing last TLAB allocation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • 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.

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

                Created:
                Updated:
                Resolved: