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

Leaner ArrayAllocator and BitMaps

    Details

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

      Description

      The ArrayAllocator class is used to use mmap, instead of malloc, for large array allocations. The current implementation uses state variables to remember what type of allocation was used. This is unnecessary, and by making ArrayAllocators AllStatic I can reduce the size of other classes that use ArrayAllocators.

      One important user of ArrayAllocators are BitMaps, and by doing this change we open of for the possibility to use smaller BitMaps.

        Attachments

          Activity

            People

            • Assignee:
              stefank Stefan Karlsson
              Reporter:
              stefank Stefan Karlsson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: