Skip to content

Commit 83d22be

Browse files
committed
Add missing TruffleBoundary
1 parent d78f59f commit 83d22be

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/PythonParser.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import com.oracle.graal.python.nodes.ErrorMessages;
3131
import com.oracle.graal.python.nodes.PNode;
3232
import com.oracle.graal.python.util.PythonUtils;
33+
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
3334
import com.oracle.truffle.api.exception.AbstractTruffleException;
3435
import com.oracle.truffle.api.frame.Frame;
3536
import com.oracle.truffle.api.interop.ExceptionType;
@@ -198,6 +199,7 @@ boolean hasSourceLocation() {
198199
}
199200

200201
@ExportMessage(name = "getSourceLocation")
202+
@TruffleBoundary
201203
SourceSection getExceptionSourceLocation() {
202204
if (line > 0 && line < source.getLineCount()) {
203205
return source.createSection(line);

0 commit comments

Comments
 (0)