-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
std.heap.PageAllocator: improve implementation on Windows using NtAllocateVirtualMemory #22846
Copy link
Copy link
Open
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.os-windowsMicrosoft WindowsMicrosoft Windowsstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Metadata
Metadata
Assignees
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.os-windowsMicrosoft WindowsMicrosoft Windowsstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
I hope I don't need to explain why this is not ideal:
zig/lib/std/heap/PageAllocator.zig
Lines 44 to 69 in d4c8507
This issue is a subtask of #1840.
Issue close criteria:
VirtualAllocfrom std libVirtualFreefrom std libNtAllocateVirtualMemoryinsteadMEM_RESERVE_PLACEHOLDERto guarantee no raceAs a bonus, measure SmpAllocator performance on Windows before and after, as well as providing a comparison with kernel32 HeapAlloc and related functions.
Related:
next_mmap_addr_hinton Windows #17377