[jdk26] RFR: 8375130: [BACKOUT] Scalability issue when submitting virtual threads with almost empty tasks [v2]

Alan Bateman alanb at openjdk.org
Wed Jan 14 08:13:02 UTC 2026


> This PR is for the jdk26 branch, not main line.
> 
> The changes in [JDK-8360046](https://bugs.openjdk.org/browse/JDK-8360046) improve the scalability of virtual threads but introduce a subtle issue with signal filtering and a regression in some SPECjbb2015 runs. [pull/28797](https://git.openjdk.org/jdk/pull/28797) is in progress for main line to address these issues.
> 
> For the jdk26 branch, the proposal is to backout the changes to ForkJoinPool from JDK-8360046 but leave the small change to setParallelism to trigger worker activation and the small change to VirtualThread to submit(ForkJoinTask) consistently.  As part of the change, the acquire fence change to address [JDK-8372835](https://bugs.openjdk.org/browse/JDK-8372835) are proposed to be included, to avoid bringing back an issue that was fixed by JDK-8360046. So a somewhat complicated story due to jdk26 being in RDP1.
> 
> 
> Testing: test1-5, repeat testing of java/util/concurrent and java/lang/Thread/virtual tests.

Alan Bateman has updated the pull request incrementally with one additional commit since the last revision:

  Change setParallelism to signalWork

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/29187/files
  - new: https://git.openjdk.org/jdk/pull/29187/files/49339c3e..c89cab20

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=29187&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29187&range=00-01

  Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/29187.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29187/head:pull/29187

PR: https://git.openjdk.org/jdk/pull/29187


More information about the core-libs-dev mailing list