RFR: 8316417: ObjectMonitorIterator does not return the most recent monitor and is incorrect if no monitors exists [v6]

Chris Plummer cjplummer at openjdk.org
Mon Sep 25 14:29:20 UTC 2023


On Mon, 25 Sep 2023 10:05:12 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:

> My understanding of the serviceability agent is very limited, but from what I understood the JVM does not run when we are attached. So no code should add to the list.

Your understanding is correct, although one thing SA has to deal with (usually by falling on its face) is that the VM could be in an inconsistent state, and there is no safe pointing, locking, or other synchronization it can do to protect from that.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15782#discussion_r1335968189


More information about the serviceability-dev mailing list