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

Parallel: Deprecate and obsolete PSChunkLargeArrays

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • hotspot
    • None
    • gc
    • behavioral
    • minimal
    • The current default value has been to use object array chunking from the start and heard no complaints. Other parallel collectors also do not allow this choice. Searching on 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
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: