Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add diagnostics-mode for initialize-at-build-time
GraalVM native-image generates a warning during the build: --initialize-at-build-time without arguments has been deprecated when not using --diagnostics-mode. With GraalVM 22.0.0 --initialize-at-build-time will only work with --diagnostics-mode for debugging purposes. The reason for deprecation is that --initalize-at-build-time does not compose, i.e., a single library can make assumptions that the whole classpath can be safely initialized at build time; that assumption is often incorrect. Adding --diagnostics-mode addresses this. There seems to be a start-up speed-up of ~1%, so the impact isn't very large, but consistent. The deprecation of --initialize-at-build-time without arguments was done in GraalVM 21.2.0, in particular commit 5013ca7c9d88bd12de2ebd24e3196a40d9044c9c. It was mentioned in the release notes: https://www.graalvm.org/release-notes/21_2/#native-image And --diagnostics-mode was added in GraalVM 21.3.0, in particular commit b036c6532bfd15cb536f37835dc79db5a9df7ba7, tho it wasn't mentioned in the release notes.
- Loading branch information