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

Leonid Mesnik lmesnik at openjdk.org
Tue Dec 16 23:08:25 UTC 2025


On Tue, 16 Dec 2025 22:04:19 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> src/hotspot/share/prims/jvmtiTagMap.cpp line 1208:
>> 
>>> 1206:     {
>>> 1207:       // If another thread is posting events, let it finish.
>>> 1208:       // This another thread might have safepoints during event callbacks.
>> 
>> The comment does not read correctly.
>
> Suggestion:
> 
> // The other thread can block for safepoints during event callbacks, so ensure we
> // are safepoint-safe while waiting.

Thank you for your suggestion.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28839#discussion_r2625038070


More information about the serviceability-dev mailing list