You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: substratevm/CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ This changelog summarizes major changes to GraalVM Native Image.
4
4
5
5
## GraalVM for JDK 25
6
6
* (GR-58668) Enabled [Whole-Program Sparse Conditional Constant Propagation (WP-SCCP)](https://github.com/oracle/graal/pull/9821) by default, improving the precision of points-to analysis in Native Image. This optimization enhances static analysis accuracy and scalability, potentially reducing the size of the final native binary.
7
+
* (GR-59864) Added JVM version check to the Native Image agent. The agent will abort execution if the JVM major version does not match the version it was built with, and warn if the full JVM version is different.
7
8
8
9
## GraalVM for JDK 24 (Internal Version 24.2.0)
9
10
* (GR-59717) Added `DuringSetupAccess.registerObjectReachabilityHandler` to allow registering a callback that is executed when an object of a specified type is marked as reachable during heap scanning.
warn(String.format("Unable to determine the \"java.vm.version\" of the running JVM. Note that the JVM should have major version %d, otherwise metadata may be incorrect.",
434
+
agentMajorVersion));
435
+
returntrue;
436
+
}
437
+
438
+
// Fail if the major versions differ.
439
+
if (!vmVersion.startsWith(Integer.toString(agentMajorVersion))) {
440
+
returnerror(false, String.format(
441
+
"The current VM (%s) is incompatible with the agent, which was built for a JVM with major version %d. To resolve this issue, run the agent using a JVM with major version %d.",
"The running JVM (%s) is different from the JVM used to build the agent (%s). If the generated metadata is incorrect or incomplete, consider running the agent using the same JVM that built it.",
0 commit comments