Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8315503 G1: Code root scan causes long GC pauses due to imbalanced iteration
  3. JDK-8322415

Release Note: G1: Balance Code Root Scan Phase During Garbage Collection

XMLWordPrintable

    • gc

        The Code Root Scan Phase during garbage collection finds references to Java objects in compiled code. To speed up this process, G1 maintains a remembered set for compiled code that contains references into the Java heap. That is, every region contains a set of compiled code that contains references into it.

        Assuming that such references are few, previous code used a single thread per region to iterate over a particular region's references, which poses a scalability bottleneck if the distribution of these references is very unbalanced.

        G1 now distributes this code root scan work across multiple threads within regions, removing this bottleneck.

              tschatzl Thomas Schatzl
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: