Skip to content

Commit afebb1a

Browse files
committed
remove dict stable assumption for the case when the dict is copied
1 parent 8b77974 commit afebb1a

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/DynamicObjectStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public Assumption getDictStableAssumption() {
175175
@TruffleBoundary
176176
public HashingStorage copy(Equivalence eq) {
177177
assert eq == HashingStorage.DEFAULT_EQIVALENCE;
178-
return new PythonObjectDictStorage(getStore().copy(getStore().getShape()), getDictStableAssumption());
178+
return new PythonObjectDictStorage(getStore().copy(getStore().getShape()), null);
179179
}
180180
}
181181

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/object/ObjectBuiltins.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -491,13 +491,6 @@ protected boolean isBuiltinObjectExact(PythonObject self) {
491491
return exactBuiltinInstanceProfile.profileIsOtherBuiltinObject(self, PythonBuiltinClassType.PythonModule);
492492
}
493493

494-
@SuppressWarnings("unused")
495-
@Specialization
496-
Object dict(PythonClass self, PNone none) {
497-
CompilerDirectives.transferToInterpreter();
498-
throw new AssertionError();
499-
}
500-
501494
@Specialization(guards = {"!isBuiltinObjectExact(self)", "!isClass(self)", "!isExactObjectInstance(self)", "isNoValue(none)"})
502495
Object dict(PythonObject self, @SuppressWarnings("unused") PNone none) {
503496
PHashingCollection dict = self.getDict();

0 commit comments

Comments
 (0)