On Tue, 3 Mar 2026 13:56:05 GMT, Viktor Klang <[email protected]> wrote:
> Staging this as a Draft PR for now (FYI: @AlanBateman @DougLea)
src/java.base/share/classes/java/lang/VirtualThread.java line 337:
> 335: Continuation.pin();
> 336: try {
> 337: scheduler.execute(runContinuation);
You can leave out the changes to VirtualThread, as we did for JDK 26
([pull/29187](https://github.com/openjdk/jdk/pull/29187)). This will ensure we
use execute(ForkJoinPool) consistently rather than a max that includes
execute(Runnable).
src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 3317:
> 3315: if ((config & PRESET_SIZE) != 0)
> 3316: throw new UnsupportedOperationException("Cannot override
> System property");
> 3317: return getAndSetParallelism(size);
For the JDK 26 backout we decided to not revert the change to setParallelism as
it's useful to trigger activation when increasing parallelism.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/30023#discussion_r2878425484
PR Review Comment: https://git.openjdk.org/jdk/pull/30023#discussion_r2882533247