RFR: 8327743: JVM crash in hotspot/share/runtime/javaThread.cpp - failed: held monitor count should be equal to jni: 0 != 1
David Holmes
dholmes at openjdk.org
Mon Apr 8 12:35:44 UTC 2024
On Mon, 8 Apr 2024 12:23:48 GMT, Robbin Ehn <rehn at openjdk.org> wrote:
> Thus implement what this comment says we are missing,
@robehn the comment isn't saying that we are missing anything. Only JNI DetachThread specifies that it will release all held monitors. When a thread terminates (platform or virtual) there is no specification to say it should also release any still held monitors - so we don't. We find all locked monitors from the in-use monitor list, we don't rely on the counters for that.
Thanks for the testing and review. I just pushed a small update for RISC
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18445#issuecomment-2042627732
More information about the hotspot-dev
mailing list