0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/Io/File
Ryan Liptak 070294b36c Threaded.createFileMap: fix handling of populate on Windows
This both fixes populate=false, since NtCreateSection needs COMMIT=true when called with a file handle (the higher level API sets this flag for the user), and also signals the intention to prefetch when populate=true, which wasn't happening before.

However, PrefetchVirtualMemory (and the ntdll equivalent NtSetInformationVirtualMemory with MEMORY_PREFETCH_INFORMATION) doesn't appear to actually do anything to decrease the number of page/hard faults. We still do the call though since it accurately signals intent, and future version of Windows may be able to do something with that.
History 2026-09-29 02:46:27 +02:00
..
Atomic.zig std.Io.Threaded: add procfs fallback for fileHardLink 2026-01-07 11:03:37 -08:00
MemoryMap.zig Threaded.createFileMap: fix handling of populate on Windows 2026-09-29 02:46:27 +02:00
MultiReader.zig std: finish moving time to Io interface 2026-02-02 23:02:31 -08:00
Reader.zig File.Reader.seekBy: Fix erroneously tossing the buffer in streaming mode 2026-08-20 08:29:34 +02:00
Writer.zig Prefer <err> => |e| return e over <err> => return <err> 2026-04-20 18:03:14 -07:00