Skip to content

Commit ea88383

Browse files
committed
Increase lib limit for asPString messages
1 parent b380d5d commit ea88383

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/BuiltinConstructors.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@ Object strNoArgs(LazyPythonClass strClass, PNone arg, PNone encoding, PNone erro
18761876

18771877
@Specialization(guards = {"!isNativeClass(strClass)", "!isNoValue(obj)", "isNoValue(encoding)", "isNoValue(errors)"})
18781878
Object strOneArg(LazyPythonClass strClass, Object obj, @SuppressWarnings("unused") PNone encoding, @SuppressWarnings("unused") PNone errors,
1879-
@CachedLibrary(limit = "1") PythonObjectLibrary lib) {
1879+
@CachedLibrary(limit = "2") PythonObjectLibrary lib) {
18801880
Object result = lib.asPString(obj);
18811881

18821882
// try to return a primitive if possible
@@ -1923,7 +1923,7 @@ private Object decodeBytes(VirtualFrame frame, LazyPythonClass strClass, PBytes
19231923
Object doNativeSubclass(@SuppressWarnings("unused") VirtualFrame frame, PythonNativeClass cls, Object obj, @SuppressWarnings("unused") Object encoding,
19241924
@SuppressWarnings("unused") Object errors,
19251925
@Cached @SuppressWarnings("unused") IsSubtypeNode isSubtype,
1926-
@CachedLibrary(limit = "1") PythonObjectLibrary lib,
1926+
@CachedLibrary(limit = "2") PythonObjectLibrary lib,
19271927
@Cached CExtNodes.StringSubtypeNew subtypeNew) {
19281928
return subtypeNew.call(cls, lib.asPString(obj));
19291929
}

0 commit comments

Comments
 (0)