adding rsockets support into JDK

Alan Bateman Alan.Bateman at oracle.com
Mon Sep 24 06:49:29 UTC 2018


On 24/09/2018 04:07, Lu, Yingqi wrote:
>
> Next item to work on:
>
> 1.For JDK internal implementation, I am not very sure how to properly 
> use dlopen/dlsym. If we do dlopen/dlsym every time we create a RDMA 
> socket or socket channel, will that cause lots of overhead? Where is 
> the best place to load the library? Please let me know if you have any 
> suggestions.
>
You can use a static initializer that invokes a native method to do the 
dlopen and dlsym on each of the functions that are needed. One example 
that may be useful is the SCTP support as sctp.h and libsctp may not be 
on the system when building or running.

-Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20180924/96e4fc5e/attachment-0001.html>


More information about the nio-dev mailing list