On Sat, 24 May 2025 11:35:33 GMT, Doug Lea <d...@openjdk.org> wrote:

> Method startDelayScheduler should trap the ISE thrown by 
> SharedThreadContainer.start and possibly re-try termination before eventually 
> throwing RejectedExecutionException.

src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 3475:

> 3473:                     ds = delayScheduler = null;
> 3474:                     unlockRunState();
> 3475:                     tryTerminate(false, false);

This reset okay, and the schedule methods will throw REE. The change makes me 
wonder about the  OOME "unable to create new native thread" scenario, should 
the schedule methods propagate it or throw REE with the OOME as cause?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25431#discussion_r2105868632

Reply via email to