Skip to content

Introduce AotDetector mode #28474

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

Closed
snicoll opened this issue May 18, 2022 · 0 comments
Closed

Introduce AotDetector mode #28474

snicoll opened this issue May 18, 2022 · 0 comments
Assignees
Labels
theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Milestone

Comments

@snicoll
Copy link
Member

snicoll commented May 18, 2022

We need a way to opt-in for the use of AOT on the JVM. Right now, we rely on the system property that is set when building a native image (or running with the native image agent with Native Build Tools), but this should be restricted to things that should really behave differently there.

Spring Native has an AotModeDetector we could use as an inspiration. This will also be relevant for #28205.

@snicoll snicoll added type: enhancement A general enhancement theme: aot An issue related to Ahead-of-time processing labels May 18, 2022
@snicoll snicoll added this to the 6.0.0-M5 milestone May 18, 2022
@snicoll snicoll self-assigned this May 30, 2022
snicoll added a commit to snicoll/spring-framework that referenced this issue Jun 2, 2022
This commit adds a central utility to figure out if the application
must run with Ahead-Of-Time optimizations. This is mandatory for running
in a native image but can be selected on the JVM using the
"spring.aot.enabled" property.

Closes spring-projectsgh-28474
@snicoll snicoll closed this as completed in da8c4de Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant