Skip to content

Commit b7e3d5b

Browse files
committed
verify calls always, not only when there is no safepoint
1 parent 43724fa commit b7e3d5b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

substratevm/src/com.oracle.svm.hosted.foreign/src/com/oracle/svm/hosted/foreign/phases/SubstrateOptimizeSharedArenaAccessPhase.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,10 +645,9 @@ private static EconomicSet<DominatedCall> insertSessionChecks(StructuredGraph gr
645645
// Compute the graph with all the necessary data about scoped memory accesses.
646646
EconomicSet<DominatedCall> calls = EconomicSet.create();
647647
EconomicMap<Node, List<ScopedAccess>> sugaredGraph = enumerateScopedAccesses(cfg, context, calls);
648-
if (sugaredGraph == null) {
649-
return null;
648+
if (sugaredGraph != null) {
649+
ReentrantBlockIterator.apply(new MinimalSessionChecks(graph, sugaredGraph, cfg, calls), cfg.getStartBlock());
650650
}
651-
ReentrantBlockIterator.apply(new MinimalSessionChecks(graph, sugaredGraph, cfg, calls), cfg.getStartBlock());
652651
return calls;
653652
}
654653

0 commit comments

Comments
 (0)