Skip to content

Commit 5534de6

Browse files
committed
make sure only one thread rewrites builtin functions at a time
1 parent 7dd3656 commit 5534de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/BuiltinFunctions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ public abstract static class BuiltinNode extends PythonUnaryBuiltinNode {
13191319

13201320
@Specialization
13211321
@TruffleBoundary
1322-
public Object doIt(PFunction func) {
1322+
synchronized public Object doIt(PFunction func) {
13231323
/*
13241324
* (tfel): To be compatible with CPython, builtin module functions must be bound to
13251325
* their respective builtin module. We ignore that builtin functions should really be

0 commit comments

Comments
 (0)