G1: Use ThreadsClaimTokenScope in G1CMRemarkTask

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: None
    • Component/s: hotspot
    • gc
    • b17

      `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.

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: