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
@@ -148,6 +147,14 @@ Debug info is also generated as part of this stage (if requested).
148
147
The code area contains machine code produced by the Graal compiler for all reachable methods.
149
148
Therefore, reducing the number of [reachable methods](#glossary-reachability) also reduces the size of the code area.
150
149
150
+
##### <a name="glossary-code-area-origins"></a>Origins of Code Area
151
+
To help users understand where the machine code of the code area comes from, the build output shows a breakdown of the top origins.
152
+
An origin is a group of Java sources and can be a JAR file, a package name, or a class name, depending on the information available.
153
+
The package `java.util`, for example, contains `HashMap` and other classes from the JDK.
154
+
The `svm.jar` file contains internal sources for the Native Image runtime called SubstrateVM.
155
+
To reduce the size of the code area and with that, the total size of the native executable, re-evaluate the dependencies of your application based on the code area breakdown.
156
+
Some libraries and frameworks are better prepared for Native Image than others, and newer versions of a library or framework may improve (or worsen) their code footprint.
157
+
151
158
#### <a name="glossary-image-heap"></a>Image Heap
152
159
The heap contains reachable objects such as static application data, metadata, and `byte[]`for different purposes (see below).
0 commit comments