RFR: 8331553: Windows JVM leaks Event and Thread handles when multiple threads are used [v2]

Viktor Klang vklang at openjdk.org
Tue Jul 30 08:39:37 UTC 2024


On Mon, 29 Jul 2024 10:06:08 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

>> Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update comment
>
> WaitOnAddress is reported to spin before yielding. It might be related.

@djelinski @dholmes-ora Couldn't it be that the producer thread is already scheduled, so it can reacquire the monitor whereas if the consumer was parked then the wake-up "lag" means that statistically it will lose?

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

PR Comment: https://git.openjdk.org/jdk/pull/19778#issuecomment-2257790622


More information about the build-dev mailing list