Skip to content

Commit 47b4fbc

Browse files
committed
add comment about the null reference in getNode and putNode
1 parent 9dbec34 commit 47b4fbc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ static Object lookup(Node inliningTarget,
138138
ObjectHashMap.GetNode getNode) {
139139
try {
140140
// lookup generated classes
141+
// For now, we assume that the keys in the InteropGeneratedClassCache and
142+
// InteropTypeRegistry do not call back to any python code.
143+
// Otherwise, the pattern listed in IndirectCallContext#enter must be used.
141144
var possiblePythonClass = getNode.execute(null,
142145
inliningTarget,
143146
PythonContext.get(inliningTarget).interopGeneratedClassCache,

0 commit comments

Comments
 (0)