RFR: 8354560: Exponentially delay subsequent native thread creation in case of EAGAIN [v3]

David Holmes dholmes at openjdk.org
Thu May 8 22:21:52 UTC 2025


On Thu, 8 May 2025 21:33:58 GMT, Yannik Stradmann <duke at openjdk.org> wrote:

>> src/hotspot/os/bsd/os_bsd.cpp line 647:
>> 
>>> 645:     pthread_t tid;
>>> 646:     int ret = 0;
>>> 647:     {
>> 
>> Why the extra block scope?
>
> I'm limiting the visibility of the "loop" variables `trials_remaining` and `next_delay` to the loop itself, preventing accidental use further down in the function.

That really is not necessary.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24682#discussion_r2080538558


More information about the hotspot-runtime-dev mailing list