Skip to content

Commit 4d49427

Browse files
committed
Handle deprecated Thread#getId()
1 parent 57545d6 commit 4d49427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static long start(VirtualFrame frame, Object callable, Object args, Object kwarg
224224

225225
Thread thread = threadBuilder.build();
226226
startThread(thread);
227-
return thread.getId();
227+
return PThread.getThreadId(thread);
228228
}
229229

230230
@TruffleBoundary

0 commit comments

Comments
 (0)