On 5/18/20 10:52 AM, Alan Bateman wrote:
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.

Please elaborate. Do you have an example of such use case? Are there any existing races possible?


Peter


-Alan

Reply via email to