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

Parallel: Remove workers number checking in constructor of PSAdjustTask

XMLWordPrintable

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

      The if checking is not necessary, because thread-claiming logic still works fine for a single worker. `StrongRootsScope` is another site which changes thread-claim-token, and that treat all positive number of workers uniformly.

      if (nworkers > 1) {
        Threads::change_thread_claim_token();
      }

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

              Created:
              Updated: