RFR: 8344533: CTW: Add option to remove clinits before loading
Tobias Hartmann
thartmann at openjdk.org
Wed Nov 20 11:48:17 UTC 2024
On Tue, 19 Nov 2024 10:50:48 GMT, Evgeny Nikitin <enikitin at openjdk.org> wrote:
> 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.
Looks reasonable to me.
-------------
Marked as reviewed by thartmann (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/22235#pullrequestreview-2448394839
More information about the hotspot-compiler-dev
mailing list