RFR: 8344533: CTW: Add option to remove clinits before loading
Evgeny Nikitin
enikitin at openjdk.org
Tue Nov 19 10:56:13 UTC 2024
This PR adds an option-controlled (off by default) removal of <clinit> methods before loading them with CTW ClassLoader.
The main purpose is to prevent `static { ... }` blocks execution (along with static fields initialization).
Testing: manual CTW runs.
-------------
Commit messages:
- 8344533: CTW: Add option to remove clinits before loading
Changes: https://git.openjdk.org/jdk/pull/22235/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22235&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8344533
Stats: 20 lines in 1 file changed: 18 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/22235.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22235/head:pull/22235
PR: https://git.openjdk.org/jdk/pull/22235
More information about the hotspot-compiler-dev
mailing list