Skip to content

Commit fd38dfe

Browse files
committed
Increase library limit for ObjectBuiltins
1 parent bb4be7c commit fd38dfe

File tree

1 file changed

+7
-7
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/object

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ public static GetAttributeNode create() {
444444
@Builtin(name = __SETATTR__, minNumOfPositionalArgs = 3)
445445
@GenerateNodeFactory
446446
public abstract static class SetattrNode extends PythonTernaryBuiltinNode {
447-
@Specialization(limit = "3")
447+
@Specialization(limit = "4")
448448
protected PNone doIt(VirtualFrame frame, Object object, Object keyObject, Object value,
449449
@CachedLibrary("object") PythonObjectLibrary libObj,
450450
@Cached StringNodes.CastToJavaStringCheckedNode castToString,
@@ -526,10 +526,10 @@ protected boolean isBuiltinObjectExact(PythonObject self) {
526526
return exactBuiltinInstanceProfile.profileIsOtherBuiltinObject(self, PythonBuiltinClassType.PythonModule);
527527
}
528528

529-
@Specialization(guards = {"!isBuiltinObjectExact(self)", "!isClass(self, iLib)", "!isExactObjectInstance(self)", "isNoValue(none)"}, limit = "1")
529+
@Specialization(guards = {"!isBuiltinObjectExact(self)", "!isClass(self, iLib)", "!isExactObjectInstance(self)", "isNoValue(none)"})
530530
Object dict(PythonObject self, @SuppressWarnings("unused") PNone none,
531-
@CachedLibrary("self") PythonObjectLibrary lib,
532-
@SuppressWarnings("unused") @CachedLibrary("self") InteropLibrary iLib) {
531+
@CachedLibrary(limit = "3") PythonObjectLibrary lib,
532+
@SuppressWarnings("unused") @CachedLibrary(limit = "3") InteropLibrary iLib) {
533533
PHashingCollection dict = lib.getDict(self);
534534
if (dict == null) {
535535
dict = factory().createDictFixedStorage(self);
@@ -543,10 +543,10 @@ Object dict(PythonObject self, @SuppressWarnings("unused") PNone none,
543543
return dict;
544544
}
545545

546-
@Specialization(guards = {"!isBuiltinObjectExact(self)", "!isClass(self, iLib)", "!isExactObjectInstance(self)"}, limit = "1")
546+
@Specialization(guards = {"!isBuiltinObjectExact(self)", "!isClass(self, iLib)", "!isExactObjectInstance(self)"})
547547
Object dict(PythonObject self, PDict dict,
548-
@CachedLibrary("self") PythonObjectLibrary lib,
549-
@SuppressWarnings("unused") @CachedLibrary("self") InteropLibrary iLib) {
548+
@CachedLibrary(limit = "3") PythonObjectLibrary lib,
549+
@SuppressWarnings("unused") @CachedLibrary(limit = "3") InteropLibrary iLib) {
550550
try {
551551
lib.setDict(self, dict);
552552
} catch (UnsupportedMessageException e) {

0 commit comments

Comments
 (0)