File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 9696import com .oracle .svm .core .threadlocal .VMThreadLocalInfos ;
9797import com .oracle .svm .core .util .CounterSupport ;
9898import com .oracle .svm .core .util .ImageHeapList ;
99+ import com .oracle .svm .core .util .RuntimeImageHeapList ;
99100import com .oracle .svm .core .util .TimeUtils ;
100101import com .oracle .svm .core .util .VMError ;
101102
@@ -1352,7 +1353,12 @@ int size() {
13521353 }
13531354
13541355 DiagnosticThunk getThunk (int index ) {
1355- return thunks .get (index );
1356+ /*
1357+ * Use an explicit cast to aid open-world analysis. Otherwise, this may trigger false
1358+ * positive violations of @RestrictHeapAccess since some implementations of List.get()
1359+ * can allocate.
1360+ */
1361+ return ((RuntimeImageHeapList <DiagnosticThunk >) thunks ).get (index );
13561362 }
13571363
13581364 int getInitialInvocationCount (int index ) {
You can’t perform that action at this time.
0 commit comments