[BACKOUT] Scalability issue when submitting virtual threads with almost empty tasks

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 26
    • Affects Version/s: 26
    • Component/s: core-libs

      The changes in JDK-8360046 improve the scalability of virtual threads. However it introduces a subtle issue with signal filtering that can lead to starvation issues when there is no other work going on, or at least no virtual threads parking (and thus FJP tasks not completing). There is some SPECjbb2015 runs that have regressed (JDK-8373715). Work on these issues is in progress for main line with JDK-8373118.

      The proposal for JDK 26 is:

      1. Backout the ForkJoinPool changes in JDK-8360046 but leave:
      - the small change to setParallelism to trigger worker activation
      - the small change to VirtualThread to submit(ForkJoinTask) consistently

      2. Include the acquire fence change from JDK-8372835 to avoid bringing back this issue into JDK 26.

            Assignee:
            Alan Bateman
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: