[lworld] RFR: 8332387: [lworld] monitorenter on value class instances must throw IdentityException instead of IllegalMonitorStateException

Frederic Parain fparain at openjdk.org
Wed May 22 20:03:29 UTC 2024


Change the exception thrown by monitorenter when attempted on an instance of a value class.
Monitorexit is not changed according to some discussions about the JVMS changes (it still throws IllegalMonitorStateException).

Tested with Mach5, tier1-3.

Fred

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

Commit messages:
 - Merge remote-tracking branch 'upstream/lworld' into monitor_exception
 - Change monitorenter exception from IMSE to IE when argument is a value

Changes: https://git.openjdk.org/valhalla/pull/1108/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1108&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8332387
  Stats: 87 lines in 24 files changed: 29 ins; 2 del; 56 mod
  Patch: https://git.openjdk.org/valhalla/pull/1108.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1108/head:pull/1108

PR: https://git.openjdk.org/valhalla/pull/1108



More information about the valhalla-dev mailing list