RFR: 8331553: Windows JVM leaks Event and Thread handles when multiple threads are used [v2]
David Holmes
dholmes at openjdk.org
Thu Aug 1 04:40:32 UTC 2024
On Tue, 30 Jul 2024 08:36:25 GMT, Viktor Klang <vklang at openjdk.org> wrote:
>> 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?
@viktorklang-ora the question is why the two APIs seems to be behaving so differently. I would expect `WaitForSingleObject` and `WaitOnAddress` to be very similar internally - though speculation on my part.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19778#issuecomment-2262013623
More information about the build-dev
mailing list