RFR: 8330077: Allow max number of events to be buffered to be configurable to avoid OVERFLOW_EVENT

Alan Bateman alanb at openjdk.org
Thu Apr 11 12:44:42 UTC 2024


On Thu, 11 Apr 2024 12:22:56 GMT, Fabian Meumertzheim <duke at openjdk.org> wrote:

> The limit on the number of events buffered for a single `j.n.f.WatchKey` is now configurable via the `sun.nio.fs.maxWatchEvents`.

test/jdk/java/nio/file/WatchService/LotsOfEntries.java line 39:

> 37: import java.util.stream.Collectors;
> 38: 
> 39: public class LotsOfEntries {

What platforms have you tested this on? I'm concerned that it may fail intermittently on some platforms/configurations.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/18739#discussion_r1560963365


More information about the nio-dev mailing list