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

Add support for undoing last TLAB allocation

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b14

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pliden Per Liden
                  Reporter:
                  pliden Per Liden
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: