[jdk21u-dev] RFR: 8320310: CompiledMethod::has_monitors flag can be incorrect
Satyen Subramaniam
ssubramaniam at openjdk.org
Fri May 2 21:29:25 UTC 2025
Backporting JDK-8320310: CompiledMethod::has_monitors flag can be incorrect. The proposed fix is to rely on Method::has_monitor_bytecodes to set the has_monitors flag when compiling, which is immune to issues where not all byte codes of a method are parsed during compilation. Adds test. Ran GHA Sanity Checks, local Tier 1 and 2 tests. Patch is clean.
-------------
Commit messages:
- Backport c8fa3e21e6a4fd7846932b545a1748cc1dc6d9f1
Changes: https://git.openjdk.org/jdk21u-dev/pull/1732/files
Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1732&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8320310
Stats: 30 lines in 4 files changed: 8 ins; 17 del; 5 mod
Patch: https://git.openjdk.org/jdk21u-dev/pull/1732.diff
Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1732/head:pull/1732
PR: https://git.openjdk.org/jdk21u-dev/pull/1732
More information about the jdk-updates-dev
mailing list