RFR: 8373723: Deadlock with JvmtiTagMap::flush_object_free_events() [v2]

David Holmes dholmes at openjdk.org
Wed Dec 17 21:23:48 UTC 2025


On Tue, 16 Dec 2025 23:08:24 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

>> The JvmtiTagMap::flush_object_free_events() method might be called from different threads.
>> The thread waits using lock until other thread posting events. The locking thread is in vm state doesn't allowing safepoints. While other thread posting events might request safepoints.
>> 
>> The fix is to block thread to allow safepoints while waiting on the lock.
>
> Leonid Mesnik has updated the pull request incrementally with one additional commit since the last revision:
> 
>   applid David's suggestion

Looks good. Thanks

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

Marked as reviewed by dholmes (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28839#pullrequestreview-3589724147


More information about the serviceability-dev mailing list