Skip to content

Commit 79378f2

Browse files
committed
Update comments about PythonOptions & PE
1 parent 2806671 commit 79378f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/TypeNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ public static GetInstanceShape create() {
15021502
@GenerateUncached
15031503
@ImportStatic(PythonOptions.class)
15041504
public abstract static class GetItemsizeNode extends Node {
1505-
// We cannot easily use PythonOptions here (used on fast-path)
1505+
// We avoid PythonOptions here because it would require language reference
15061506
static final int MAX_RECURSION_DEPTH = 4;
15071507

15081508
public final long execute(Object cls) {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/classes/AbstractObjectIsSubclassNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
@ImportStatic(PythonOptions.class)
6363
@NodeInfo(shortName = "cpython://Objects/abstract.c/abstract_issubclass")
6464
public abstract class AbstractObjectIsSubclassNode extends PNodeWithContext {
65-
static final int MAX_RECURSION = 3; // Cannot use PythonOptions on fast-path
65+
static final int MAX_RECURSION = 3; // Don't use PythonOptions to avoid language reference
6666

6767
public static AbstractObjectIsSubclassNode create() {
6868
return AbstractObjectIsSubclassNodeGen.create();

0 commit comments

Comments
 (0)