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 135
135
import com .oracle .graal .python .runtime .sequence .storage .EmptySequenceStorage ;
136
136
import com .oracle .graal .python .runtime .sequence .storage .IntSequenceStorage ;
137
137
import com .oracle .graal .python .runtime .sequence .storage .LongSequenceStorage ;
138
+ import com .oracle .graal .python .runtime .sequence .storage .MroSequenceStorage ;
138
139
import com .oracle .graal .python .runtime .sequence .storage .SequenceStorage ;
139
140
import com .oracle .graal .python .runtime .sequence .storage .SequenceStorageFactory ;
140
141
import com .oracle .graal .python .util .PythonUtils ;
@@ -204,7 +205,7 @@ protected static AllocationReporter getAllocationReporter(ContextReference<Pytho
204
205
return contextRef .get ().getEnv ().lookup (AllocationReporter .class );
205
206
}
206
207
207
- private final PythonLanguage getLanguage () {
208
+ private PythonLanguage getLanguage () {
208
209
return executeGetLanguage (true , 0.0 );
209
210
}
210
211
@@ -556,6 +557,10 @@ public PDict createDict(DynamicObject dynamicObject) {
556
557
return createDict (new DynamicObjectStorage (dynamicObject ));
557
558
}
558
559
560
+ public PDict createDictFixedStorage (PythonObject pythonObject , MroSequenceStorage mroSequenceStorage ) {
561
+ return createDict (new DynamicObjectStorage (pythonObject .getStorage (), mroSequenceStorage ));
562
+ }
563
+
559
564
public PDict createDictFixedStorage (PythonObject pythonObject ) {
560
565
return createDict (new DynamicObjectStorage (pythonObject .getStorage ()));
561
566
}
You can’t perform that action at this time.
0 commit comments