[PATCH] 8153925: WindowsWatchService hangs on GetOverlappedResult and locks directory
Alex Kashchenko
akashche at redhat.com
Sat Apr 9 22:23:26 UTC 2016
Hi,
Please review a fix for the windows-specific WatchService problem:
- issue: https://bugs.openjdk.java.net/browse/JDK-8153925
- patch: http://cr.openjdk.java.net/~akasko/jdk8u/8153925/webrev.00/
- reproducer:
http://cr.openjdk.java.net/~akasko/jdk8u/8153925/reproducer.00/GetOverlappedResultHangsTest.java
- original JBoss Tools issue: https://issues.jboss.org/browse/JBIDE-22078
The patch adds an additional flag to WindowsWatchKey that is set to true
when ReadDirectoryChangesW call fails. If the flag is set then
GetOverlappedResult won't be called after CancelIo call during key
invalidation.
--
-Alex
More information about the jdk8u-dev
mailing list