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-49525] Flag '--future-defaults=<option>' for gentle migration to the correct Native Image semantics. #10531

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

graalvmbot
Copy link
Collaborator

@graalvmbot graalvmbot commented Jan 21, 2025

Introduced --future-defaults=[all|run-time-initialized-jdk|none] that allows for gentle migration to the future default behaviors of Native Image. The first enabled behavior is run-time-initialized-jdk that moves away from build-time initialization of the JDK.

Note: what makes it into the future-defaults must not be an experimental feature that can be rolled back. The changes must be aligning native image with the Java spec and must be thoroughly reviewed.

Value none resets all previous settings and can be set only on the command line. Other options can be placed in JAR files as well.

Build Output
 Recommendations:
 G1GC: Use the G1 GC ('--gc=G1') for improved latency and throughput.
 PGO:  Use Profile-Guided Optimizations ('--pgo') for improved throughput.
 FUTR: Use --future-defaults=all to use the correct semantics and prepare for future releases.
 HEAP: Set max heap for improved and more predictable memory usage.
 CPU:  Enable more CPU features with '-march=native' for improved performance.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 21, 2025
@graalvmbot graalvmbot force-pushed the vj/GR-49525-run-time-jdk-support branch from 042504c to 1e04cbe Compare January 22, 2025 13:02
@jerboaa
Copy link
Collaborator

jerboaa commented Jan 22, 2025

@vjovanov Could you please add a description to this PR? It shows up empty over here :-/

@graalvmbot graalvmbot force-pushed the vj/GR-49525-run-time-jdk-support branch from 1e04cbe to 2c4518d Compare January 22, 2025 18:21
@graalvmbot graalvmbot changed the title [GR-49525] Mechanism to move JDK initialization to run time. [GR-49525] Flag --future-defaults=<option> meant to gently fix Native Image semantics. Mar 19, 2025
@graalvmbot graalvmbot force-pushed the vj/GR-49525-run-time-jdk-support branch from 2c4518d to 850d001 Compare March 19, 2025 16:12
@graalvmbot graalvmbot changed the title [GR-49525] Flag --future-defaults=<option> meant to gently fix Native Image semantics. [GR-49525] Flag '--future-defaults=<option>' meant to gently migrate to correct Native Image semantics. Mar 19, 2025
@graalvmbot graalvmbot force-pushed the vj/GR-49525-run-time-jdk-support branch 5 times, most recently from e07d278 to 82e78f3 Compare March 19, 2025 18:02
@graalvmbot graalvmbot force-pushed the vj/GR-49525-run-time-jdk-support branch from 82e78f3 to b51a3bc Compare March 19, 2025 18:22
@graalvmbot graalvmbot changed the title [GR-49525] Flag '--future-defaults=<option>' meant to gently migrate to correct Native Image semantics. [GR-49525] Flag '--future-defaults=<option>' for gentle migration to the correct Native Image semantics. Mar 19, 2025
@graalvmbot graalvmbot force-pushed the vj/GR-49525-run-time-jdk-support branch from b51a3bc to 08a06dc Compare March 19, 2025 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants