Skip to content

Commit 2caf322

Browse files
committed
Revert "Do not transfer to interpreter when running async handlers."
This reverts commit 8d45ae2.
1 parent d895bc2 commit 2caf322

File tree

1 file changed

+2
-0
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime

1 file changed

+2
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/AsyncHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
import com.oracle.graal.python.builtins.objects.function.PArguments;
5656
import com.oracle.graal.python.nodes.call.CallNode;
5757
import com.oracle.truffle.api.CallTarget;
58+
import com.oracle.truffle.api.CompilerDirectives;
5859
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
5960
import com.oracle.truffle.api.Truffle;
6061
import com.oracle.truffle.api.TruffleLanguage;
@@ -163,6 +164,7 @@ void triggerAsyncActions() {
163164
// Uses weakCompareAndSet because we just want to do it in a timely manner, but we don't
164165
// need the ordering guarantees.
165166
if (hasScheduledAction) {
167+
CompilerDirectives.transferToInterpreter();
166168
processAsyncActions();
167169
}
168170
}

0 commit comments

Comments
 (0)