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

Remove double initialization for parts of small TypeArrays in ZObjArrayAllocator

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • 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.

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

              Created:
              Updated:
              Resolved: