RFR: 8352414: JFR: JavaMonitorDeflateEvent crashes when deflated monitor object is dead [v2]

Aleksey Shipilev shade at openjdk.org
Mon Mar 24 11:42:10 UTC 2025


On Mon, 24 Mar 2025 11:15:28 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

> What problem are we trying to solve here again? Are we interested in how long a monitor was inflated? Pairing up inflates with deflates?

Yes, we want to pair inflates with deflates. When deflate happens on a dead object, we don't have a clear signal which object was deflated. But the event counts (and their timestamps) would still be matchable, and `inflations` - `deflations` would be roughly equal to monitor count from the stats event. I expect the events with dead objects would be fairly rare anyway.

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

PR Comment: https://git.openjdk.org/jdk/pull/24121#issuecomment-2747830193


More information about the hotspot-dev mailing list