Skip to content

Commit 8ddbf25

Browse files
committed
Adding truffleboundary
1 parent d511c94 commit 8ddbf25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Object sleep(double seconds) {
236236
@GenerateNodeFactory
237237
@TypeSystemReference(PythonArithmeticTypes.class)
238238
public abstract static class StrfTimeNode extends PythonBuiltinNode {
239-
private static int IMPOSSIBLE = -2;
239+
private static final int IMPOSSIBLE = -2;
240240
@Child private CastToIntegerFromIntNode castIntNode;
241241

242242
@CompilationFinal private ConditionProfile outOfRangeProfile;
@@ -371,6 +371,7 @@ private static GregorianCalendar getCalendar(int[] time) {
371371

372372
// This taken from JPython + some switches were corrected to provide the
373373
// same result as CPython
374+
@TruffleBoundary
374375
private String format(String format, PTuple date) {
375376

376377
int[] items = checkStructtime(date);

0 commit comments

Comments
 (0)