The virtual thread is not parked in InetAddress isReachable
Anton Rameykov
a.rameykov at gmail.com
Tue Apr 22 13:28:29 UTC 2025
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.
вт, 22 апр. 2025 г. в 15:59, Alan Bateman <alan.bateman at oracle.com>:
> On 22/04/2025 13:18, Anton Rameykov wrote:
> > :
> > InetAddress address =
> > InetAddress.getByName("8.8.8.8");
> > boolean reachable = address.isReachable(100);
> cc'ing net-dev as that is where the networking code is maintained. Right
> now, the the IGMP and TCP implementations of isReachable are written in
> native code. These are good candidates to re-implement in Java and FFM.
> In particular, the TCP implementation (use when not root or permission
> to create raw sockets) could be migrated and should just park gracefully
> when waiting to see if a connection can be established.
>
> -Alan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250422/42f716ac/attachment-0001.htm>
More information about the core-libs-dev
mailing list