Skip to content

[compat] Thread#native_thread_id: using Java thread-id#9343

Merged
headius merged 1 commit intojruby:jruby-10.0from
kares:native-thread-id-10
Mar 31, 2026
Merged

[compat] Thread#native_thread_id: using Java thread-id#9343
headius merged 1 commit intojruby:jruby-10.0from
kares:native-thread-id-10

Conversation

@kares
Copy link
Copy Markdown
Member

@kares kares commented Mar 29, 2026

Thread.threadId() (JDK 19+) returns a unique identifier per thread.

No need to rely on internal JMX hacks anymore, which aren't really working atm (same thread-id for multiple threads).

Thread.threadId() (JDK 19+) returns a unique identifier per thread
@kares kares added this to the JRuby 10.0.5.0 milestone Mar 29, 2026
@headius headius merged commit 1f23f8d into jruby:jruby-10.0 Mar 31, 2026
206 of 207 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants