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

G1: Use ThreadsClaimTokenScope in G1CMRemarkTask

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • gc

      `G1ConcurrentMark::finalize_marking` uses `StrongRootsScope` before creating `G1CMRemarkTask`. The actual required logic inside `StrongRootsScope` is threads-claim-token. One can use `ThreadsClaimTokenScope` inside `G1CMRemarkTask` directly to make the intention explicit and closer to where it's used, `possibly_parallel_threads_do` in the `work()` method.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: