Integrated: 8344533: CTW: Add option to remove clinits before loading

Evgeny Nikitin enikitin at openjdk.org
Sat Nov 23 03:58:18 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.

This pull request has now been integrated.

Changeset: effee122
Author:    Evgeny Nikitin <enikitin at openjdk.org>
Committer: Leonid Mesnik <lmesnik at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/effee122dd74241db4ec2b6bfd99f1450741b804
Stats:     20 lines in 1 file changed: 18 ins; 0 del; 2 mod

8344533: CTW: Add option to remove clinits before loading

Reviewed-by: thartmann, lmesnik

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

PR: https://git.openjdk.org/jdk/pull/22235


More information about the hotspot-compiler-dev mailing list