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

Allow that PLAB allocations at the end of regions are flexible

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b81

      Backports

        Description

        Investigation in JDK-8030849 showed that there is a very large amount of wasted memory when allocating PLABs due to the region end being a hard boundary and the PLAB size not flexible.

        E.g. if you want to allocate a PLAB of size 20k (to allocate regular sized objects), but there is only 19k left, the current allocation algorithm simply skips to the next region.

        Fix this by allowing the allocator to return smaller (but large enough to fit the allocation) PLABs in this case.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tschatzl Thomas Schatzl
                  Reporter:
                  tschatzl Thomas Schatzl
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: