Remove double initialization for parts of small TypeArrays in ZObjArrayAllocator

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 23
    • Affects Version/s: 23
    • Component/s: hotspot
    • gc
    • b24

      JDK-8139457 introduced non-word aligned payloads for TypeArrays. This required adaptation in ZObjArrayAllocator segmented array allocator. But the implementation does this adaptation even when the size is small enough and dispatches the allocation to ObjArrayAllocator, which already handles clearing this memory.

      Instead move the initialization of any unaligned payload start to after the segmented allocation decision.

            Assignee:
            Axel Boldt-Christmas
            Reporter:
            Axel Boldt-Christmas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: