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

Leaner ArrayAllocator and BitMaps

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 9
    • 9
    • hotspot
    • None
    • gc
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: