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

Leaner ArrayAllocator and BitMaps

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b115

      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.

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

              Created:
              Updated:
              Resolved: