Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GR-39967] findStaticVarHandle folding can trigger initialization of user classes during the image build #4744

Closed
gradinac opened this issue Jul 21, 2022 · 1 comment
Assignees
Labels
bug native-image spring spring related issue

Comments

@gradinac
Copy link
Contributor

When performing a VarHandle lookup for a static field, native-image will fold the method call if the arguments are constant. However, this may trigger initialization of user classes. An example of such a lookup can be found in netty 5

Tracked internally by GR-39967.

@gradinac gradinac added bug native-image spring spring related issue labels Jul 21, 2022
@gradinac gradinac added this to the 22.3 milestone Jul 21, 2022
@fniephaus fniephaus changed the title findStaticVarHandle folding can trigger initialization of user classes during the image build [GR-39967] findStaticVarHandle folding can trigger initialization of user classes during the image build Sep 22, 2022
@fniephaus fniephaus assigned cstancu and unassigned gradinac Sep 22, 2022
@cstancu
Copy link
Member

cstancu commented Oct 6, 2022

Fixed by #5156

@cstancu cstancu closed this as completed Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug native-image spring spring related issue
Projects
None yet
Development

No branches or pull requests

2 participants