File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -695,7 +695,7 @@ Object doManaged(PythonManagedClass self,
695
695
@ CachedLibrary ("self" ) PythonObjectLibrary lib ) {
696
696
PDict dict = lib .getDict (self );
697
697
if (dict == null ) {
698
- dict = factory ().createDictFixedStorage (self );
698
+ dict = factory ().createDictFixedStorage (self , self . getMethodResolutionOrder () );
699
699
// The mapping is unmodifiable, so we don't have to assign it back
700
700
}
701
701
return factory ().createMappingproxy (dict );
Original file line number Diff line number Diff line change 137
137
import com .oracle .graal .python .runtime .sequence .storage .EmptySequenceStorage ;
138
138
import com .oracle .graal .python .runtime .sequence .storage .IntSequenceStorage ;
139
139
import com .oracle .graal .python .runtime .sequence .storage .LongSequenceStorage ;
140
+ import com .oracle .graal .python .runtime .sequence .storage .MroSequenceStorage ;
140
141
import com .oracle .graal .python .runtime .sequence .storage .SequenceStorage ;
141
142
import com .oracle .graal .python .runtime .sequence .storage .SequenceStorageFactory ;
142
143
import com .oracle .graal .python .util .PythonUtils ;
@@ -206,7 +207,7 @@ protected static AllocationReporter getAllocationReporter(ContextReference<Pytho
206
207
return contextRef .get ().getEnv ().lookup (AllocationReporter .class );
207
208
}
208
209
209
- private final PythonLanguage getLanguage () {
210
+ private PythonLanguage getLanguage () {
210
211
return executeGetLanguage (true , 0.0 );
211
212
}
212
213
@@ -574,6 +575,10 @@ public PDict createDict(DynamicObject dynamicObject) {
574
575
return createDict (new DynamicObjectStorage (dynamicObject ));
575
576
}
576
577
578
+ public PDict createDictFixedStorage (PythonObject pythonObject , MroSequenceStorage mroSequenceStorage ) {
579
+ return createDict (new DynamicObjectStorage (pythonObject .getStorage (), mroSequenceStorage ));
580
+ }
581
+
577
582
public PDict createDictFixedStorage (PythonObject pythonObject ) {
578
583
return createDict (new DynamicObjectStorage (pythonObject .getStorage ()));
579
584
}
You can’t perform that action at this time.
0 commit comments