RFR: 8318757: VM_ThreadDump asserts in interleaved ObjectMonitor::deflate_monitor calls [v6]

Stefan Karlsson stefank at openjdk.org
Thu Nov 9 07:29:15 UTC 2023


> A safepointed monitor deflation pass can run interleaved with a paused async monitor deflation pass. The code is not written to handle that situation and asserts when it finds a DEFLATER_MARKER in the owner field. @pchilano also found other issues with having to monitor deflation passes interleaved. More info below ...

Stefan Karlsson has updated the pull request incrementally with five additional commits since the last revision:

 - Tweak the flag comment a bit
 - Add AsyncMonitorDeflationForThreadDumpLimit flag
 - Typos
 - Remove comment in do_monitors
 - Make monitors array public static

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/16519/files
  - new: https://git.openjdk.org/jdk/pull/16519/files/2180a0c9..103d917a

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=16519&range=05
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=16519&range=04-05

  Stats: 19 lines in 3 files changed: 7 ins; 7 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/16519.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16519/head:pull/16519

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


More information about the hotspot-dev mailing list