RFR [8055421]: Unknown error in UnixNativeDispatcher
Florian Weimer
fweimer at redhat.com
Thu Aug 21 06:59:25 UTC 2014
On 08/20/2014 11:24 AM, Ivan Gerasimov wrote:
>>>>> BUGURL: https://bugs.openjdk.java.net/browse/JDK-8055421
>>>>> WEBREV: http://cr.openjdk.java.net/~igerasim/8055421/0/webrev/
> It's not clear from the report what are the reason of the observed
> failure of closedir.
I think the most likely explanation is that closedir succeeded, but
errno was -1 for some random reason, and the exception was thrown
without without an actual error. It's still odd that errno was -1,
though, but it can obviously happen, it's just some thread-local
variable, after all.
> However, the bug and fix are quite obvious I think.
Yes, it's clear that the new code is more correct. :-)
--
Florian Weimer / Red Hat Product Security
More information about the nio-dev
mailing list