RFR: 8351733: [macos] Crash when creating too many nested event loops [v3]

Andy Goryachev angorya at openjdk.org
Mon Mar 24 20:14:11 UTC 2025


On Mon, 24 Mar 2025 20:05:34 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

>> what I meant is the exception should indicate the limit that triggered the exception.
>> because it will likely be the first question the application developer asks when seeing this exception.
>
> The limit is an implementation detail, and should not be elevated to specification. What application developers should be doing if they want to avoid hitting the limit, is call `Platform.canStartNestedEventLoop()`.

disagree: we are not codifying what the limit is, but showing the condition at the exception, for the sake of application developers.

`ArrayList.set(int, T)` throws an exception specifying the offending index value.  Not exactly the same situation, but the same spirit.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1741#discussion_r2010860909


More information about the openjfx-dev mailing list