On Mon, 29 Jul 2024 10:06:08 GMT, Daniel Jeliński <djelin...@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