RFR: 8314225: SIGSEGV in JavaThread::is_lock_owned

Kevin Walls kevinw at openjdk.org
Wed May 1 08:26:52 UTC 2024


Removal of JavaThread's MonitorChunks member.  This held lock information during deoptimization, but access to it is unnecessary for anything other than the deoptimization itself.

Access to it in is_lock_owned() was racy, and caused rare crashes.

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

Commit messages:
 - Merge remote-tracking branch 'upstream/master' into 8314225_is_lock_owned_no_monitor_chunks_check
 - Add asserts around move_to calls
 - Merge remote-tracking branch 'upstream/master' into 8314225_is_lock_owned_no_monitor_chunks_check
 - 8314225: SIGSEGV in JavaThread::is_lock_owned

Changes: https://git.openjdk.org/jdk/pull/18940/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18940&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8314225
  Stats: 77 lines in 8 files changed: 10 ins; 57 del; 10 mod
  Patch: https://git.openjdk.org/jdk/pull/18940.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18940/head:pull/18940

PR: https://git.openjdk.org/jdk/pull/18940


More information about the hotspot-dev mailing list