RFR: 8316401: sun/tools/jhsdb/JStackStressTest.java failed with "InternalError: We should have found a thread that owns the anonymous lock"

Chris Plummer cjplummer at openjdk.org
Wed Sep 27 15:45:15 UTC 2023


On Wed, 27 Sep 2023 04:17:57 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> I wonder if we are in the middle of a GC, the object has been moved, and the lock stack object reference has been updated but the monitor reference has not (or vice versa).
>
> I think you are right @plummercj - I'm adding details to the JBS issue.

I think given this, issuing a warning is the appropriate thing to do. The warning might want to mention that the failure is likely because we are in the middle of a GC. That way the user has some context as to why SA info is not reliable.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15907#discussion_r1338812930


More information about the serviceability-dev mailing list