Skip to content

Commit cbc1707

Browse files
committed
Avoid needless library instantiation in PyFloatFromString
1 parent 05a0130 commit cbc1707

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/lib/PyFloatFromString.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -86,10 +86,10 @@ static double doString(VirtualFrame frame, Node inliningTarget, TruffleString ob
8686
return convertStringToDouble(frame, inliningTarget, toJavaStringNode.execute(object), object, reprNode, raiseNode);
8787
}
8888

89-
@Specialization(limit = "3")
89+
@Specialization
9090
static double doGeneric(VirtualFrame frame, Node inliningTarget, Object object,
9191
@Cached(value = "createFor(this)") IndirectCallData indirectCallData,
92-
@CachedLibrary("object") PythonBufferAcquireLibrary acquireLib,
92+
@CachedLibrary(limit = "3") PythonBufferAcquireLibrary acquireLib,
9393
@CachedLibrary(limit = "3") PythonBufferAccessLibrary accessLib,
9494
@Cached(inline = false) CastToJavaStringNode cast,
9595
@Shared @Cached PyObjectReprAsTruffleStringNode reprNode,

0 commit comments

Comments
 (0)