Skip to content

Commit 2fe6b05

Browse files
committed
Add missing write to polyglotForeignClasses for the base case
* The write used to be in classForTraits() but was moved to resolvePolyglotForeignClass() to move that code behind the @TruffleBoundary for multi-context.
1 parent 81de836 commit 2fe6b05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/object/GetForeignObjectClassNode.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ private PythonManagedClass classForTraits(int traits) {
167167
private PythonManagedClass resolvePolyglotForeignClass(int traits) {
168168
PythonBuiltinClass base = getContext().lookupType(PythonBuiltinClassType.ForeignObject);
169169
if (traits == 0) {
170+
getContext().polyglotForeignClasses[traits] = base;
170171
return base;
171172
}
172173

0 commit comments

Comments
 (0)