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

Brian Burkhalter bpb at openjdk.org
Fri Apr 12 20:16:42 UTC 2024


On Fri, 12 Apr 2024 07:38:57 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`.
>
> Fabian Meumertzheim has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Use SOFT_MAX_ARRAY_LENGTH

A build of the current JDK mainline patched with this change (webrev 04 diff) passed 300 repeats of the test on linux-aarch64, macosx-x64, and windows-x64.

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

PR Comment: https://git.openjdk.org/jdk/pull/18739#issuecomment-2052461396


More information about the nio-dev mailing list