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/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/classinitialization/ClassInitializationFeature.java
+11
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,18 @@ public void afterAnalysis(AfterAnalysisAccess a) {
193
193
}
194
194
195
195
if (ClassInitializationOptions.AssertInitializationSpecifiedForAllClasses.getValue()) {
196
+
/*
197
+
* This option enables a check that all application classes have an explicitly
198
+
* specified initialization status. This is useful to ensure that most classes (all
199
+
* classes for which it is feasible) are marked as "initialize at image build time"
200
+
* to avoid the overhead of class initialization checks at run time.
201
+
*
202
+
* We exclude JDK classes from the check: the application should not interfere with
203
+
* the class initialization status of the JDK because the application cannot know
204
+
* which JDK classes are safe for initialization at image build time.
0 commit comments