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/ClassInitializationSupport.java
+23-1Lines changed: 23 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,29 @@ public ClassInitializationSupport(MetaAccessProvider metaAccess, ImageClassLoade
125
125
this.loader = loader;
126
126
}
127
127
128
-
publicvoidsetConfigurationSealed(booleansealed) {
128
+
/**
129
+
* Seal the configuration, blocking if another thread is trying to seal the configuration or an
130
+
* unsealed-configuration window is currently open in another thread.
131
+
*/
132
+
publicsynchronizedvoidsealConfiguration() {
133
+
setConfigurationSealed(true);
134
+
}
135
+
136
+
/**
137
+
* Run the action in an unsealed-configuration window, blocking if another thread is trying to
138
+
* seal the configuration or an unsealed-configuration window is currently open in another
139
+
* thread. The window is reentrant, i.e., it will not block the thread that opened the window
140
+
* from trying to reenter the window. Note that if the configuration was not sealed when the
141
+
* window was opened this will not affect the seal status.
0 commit comments