The virtual thread is not parked in InetAddress isReachable

Alan Bateman alan.bateman at oracle.com
Wed Apr 23 06:37:18 UTC 2025


On 22/04/2025 14:28, Anton Rameykov wrote:
> Alan, good day to you. I have a few questions. Could you please advise 
> me to forward my initial message to the net-dev mailing list? Sorry, 
> it's just my first time with the mailing model. And second question, 
> if the thread went to native code why Djdk.tracePinnedThreads=full 
> didn't work and didn't show debugging information.
>
The diagnostic option that used to be enabled with 
-Djdk.tracePinnedThreads=full was limited to cases where a virtual 
thread parked in Java while pinned. The scenario with 
InetAddress.isReachable is that it is implemented in native code so 
doesn't integrate with the diagnostics features that report pinning. The 
right thing here is to re-implement InetAddress.isReachable, it's just 
hasn't been high priority to do that.

-Alan


More information about the net-dev mailing list