JDK-8332455 : Improve G1/ParallelGC tasks to not override array lengths
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 23
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2024-05-17
  • Updated: 2024-08-02
  • Resolved: 2024-07-10
Related Reports
Relates :  
Description
In order to not cause excessive traffic on task queues when scanning large object arrays, G1 uses a way of slicing those arrays into smaller pieces. It overrides the from-space array's length field to track the array slices.

We should improve the tasks such that array slices can be fully encoded in the task and does not require overriding the array length.
Comments
I found a better solution to my problem, there's no need to change array slicing in such a fundamental way.
10-07-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/19282 Date: 2024-05-17 12:02:08 +0000
09-07-2024