File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,11 @@ protected void addClosureCellsToLocals(Frame frame) {
78
78
assert freeVarSlots != null : "closure root node: the free var slots cannot be null when the closure is not null" ;
79
79
assert frameClosure .length == freeVarSlots .length : "closure root node: the closure must have the same length as the free var slots array" ;
80
80
if (closure != null && closure != NO_CLOSURE ) {
81
- addClosureCellsToLocalsExploded (frame , closure );
81
+ if (freeVarSlots .length < 32 ) {
82
+ addClosureCellsToLocalsExploded (frame , closure );
83
+ } else {
84
+ addClosureCellsToLocalsLoop (frame , closure );
85
+ }
82
86
} else {
83
87
if (freeVarSlots .length < 32 ) {
84
88
addClosureCellsToLocalsExploded (frame , frameClosure );
You can’t perform that action at this time.
0 commit comments