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

Add option to run-time initialize JDK classes #46092

Open
zakkak opened this issue Feb 5, 2025 · 1 comment
Open

Add option to run-time initialize JDK classes #46092

zakkak opened this issue Feb 5, 2025 · 1 comment
Labels

Comments

@zakkak
Copy link
Contributor

zakkak commented Feb 5, 2025

Description

Currently we can't test the flag -H:-InitializeJDKAtBuildTimeMigration that is planned to be introduced to GraalVM with oracle/graal#10531 because GraalVM internally registers classes for build-time or run-time registrations using the same mechanisms we do.

The idea behind the -H:-InitializeJDKAtBuildTimeMigration flag is that it will not register JDK classes for build-time initialization (which is what happens now), allowing them to be run-time initialized which is the default behavior for classes without explicit build time initialization strategy. However, in Quarkus registers everything for build-time initialization so we will need to explicitly register for run-time initialization any JDK classes no longer being registered for build time initialization when using -H:-InitializeJDKAtBuildTimeMigration.

Relates to #42682 which if implemented would possibly make this easier.

Implementation ideas

No response

Copy link

quarkus-bot bot commented Feb 6, 2025

/cc @Karm (native-image), @galderz (native-image)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants