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 96
96
import com .oracle .svm .core .threadlocal .VMThreadLocalInfos ;
97
97
import com .oracle .svm .core .util .CounterSupport ;
98
98
import com .oracle .svm .core .util .ImageHeapList ;
99
+ import com .oracle .svm .core .util .RuntimeImageHeapList ;
99
100
import com .oracle .svm .core .util .TimeUtils ;
100
101
import com .oracle .svm .core .util .VMError ;
101
102
@@ -1352,7 +1353,12 @@ int size() {
1352
1353
}
1353
1354
1354
1355
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 );
1356
1362
}
1357
1363
1358
1364
int getInitialInvocationCount (int index ) {
You can’t perform that action at this time.
0 commit comments