nio2: NIO.2 file API companion code (streaming 5 GB at -Xmx64m, handle leaks, WatchService, mmap)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KqJyCidz3ZgRyHABv2GVJh
This commit is contained in:
2026-09-30 19:14:31 +00:00
co-authored by Claude Sonnet 5.5
parent f4b732799d
commit 1ac2f6077a
30 changed files with 1072 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
open fds at start: 8
after 50 fully consumed, unclosed Files.walk: +0 fds
after 50 unclosed Files.lines + findFirst(): +50 fds
after closing them: +0 fds
after 50 try-with-resources Files.lines: +0 fds
after 50 unclosed Files.walk + findFirst(): +300 fds
after closing them: +0 fds
after 50 unreferenced, unclosed Files.lines: +50 fds
after System.gc(): +0 fds
after 50 unreferenced, unclosed Files.walk: +300 fds
after System.gc(): +300 fds