On Sun, 18 Jan 2026 21:07:48 GMT, Doug Lea <[email protected]> wrote:

>> Changes signal filtering to avoid possible starvation
>
> Doug Lea has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Simplify scan mode control by moving and reworking topLevelExec and 
> throwing on trim

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

> 1173:      */
> 1174:     @SuppressWarnings("serial")
> 1175:     static final class WorkerTrimmedException extends RuntimeException 
> { }

I presume that the intent is not to have this surface outside of FJP—might make 
sense to create a cached instance to make it less risky to throw (cheaper to 
construct + no risk of it triggering OOME under heavy load scenarios?)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28797#discussion_r2702927621

Reply via email to