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

Parallel: Deprecate and obsolete PSChunkLargeArrays

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 26
    • hotspot
    • None
    • gc
    • behavioral
    • minimal
    • Hide
      The current default value has been to use object array chunking from the start and we heard no complaints. Other parallel collectors also do not allow this choice as it is generally useful in our experience/testing. Searching the internet found no usages of this flag.
      Show
      The current default value has been to use object array chunking from the start and we heard no complaints. Other parallel collectors also do not allow this choice as it is generally useful in our experience/testing. Searching the internet found no usages of this flag.
    • add/remove/modify command line option
    • JDK

      Summary

      Deprecate the PSChunkLargeArrays flag in JDK 26 and obsolete it in JDK 27, then remove in JDK 28.

      Problem

      PSChunkLargeArrays incurs some implementation complexity in object array chunking during Young GC. However, there is no benefit in disabling this flag, as small object arrays (below ParGCArrayScanChunk) are not chunked anyway.

      This flag is used only by the Parallel and it is enabled by default.

      Solution

      Deprecate the PSChunkLargeArrays flag in JDK 26 and obsolete it in JDK 27, then remove in JDK 28.

      Specification

         product(bool, PSChunkLargeArrays, true,                                   \
      -          "Process large arrays in chunks")                                 \
      +          "(Deprecated) Process large arrays in chunks")

            ayang Albert Yang
            kbarrett Kim Barrett
            Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: