RFR: 8244936: Reduce JNI overhead of accessing FileDescriptor
Alan Bateman
Alan.Bateman at oracle.com
Mon May 18 08:52:40 UTC 2020
On 18/05/2020 09:48, Peter Levart wrote:
> Hi Claes,
>
>
> One step further would be to eliminate access to
> FileDescriptor.fd/handle from native hot paths altogether and pass the
> fd/handle to native methods from java:
I was chatting with Claes about this last week and the concern with
doing this is that it creates problems for async close because it
increases the window where the native code is using a "raw" file descriptor.
-Alan
More information about the core-libs-dev
mailing list