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

Michael Strauß mstrauss at openjdk.org
Mon Mar 24 20:08:13 UTC 2025


On Mon, 24 Mar 2025 19:56:21 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> Unless you are going to track the actual depth, I'd probably leave it as is. When Java throws a StackOverflow it doesn't print the depth.
>
> 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()`.

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

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


More information about the openjfx-dev mailing list