RFR: 8361730: The CodeBuilder.trying(BlockCodeBuilder,CatchBuilder) method generates corrupted bytecode in certain cases
Chen Liang
liach at openjdk.org
Fri Aug 1 18:12:34 UTC 2025
Explicitly document that BlockCodeBuilder expects control flow to continue after it merges back to the parent block, so failure to do that by the users can lead to malformed code. This is better than introducing complex and costly analysis.
-------------
Commit messages:
- 8361730: The CodeBuilder.trying(BlockCodeBuilder,CatchBuilder) method generates corrupted bytecode in certain cases
Changes: https://git.openjdk.org/jdk/pull/26602/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26602&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8361730
Stats: 5 lines in 1 file changed: 5 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/26602.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26602/head:pull/26602
PR: https://git.openjdk.org/jdk/pull/26602
More information about the core-libs-dev
mailing list