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

Allow that PLAB allocations at the end of regions are flexible

XMLWordPrintable

    • gc
    • b81

        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.

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

                Created:
                Updated:
                Resolved: