Skip to content

Windows: Use MEM_RESERVE for Protection::None allocations#34

Open
Mrmaxmeier wants to merge 1 commit intodarfink:masterfrom
Mrmaxmeier:windows-mem-reserve
Open

Windows: Use MEM_RESERVE for Protection::None allocations#34
Mrmaxmeier wants to merge 1 commit intodarfink:masterfrom
Mrmaxmeier:windows-mem-reserve

Conversation

@Mrmaxmeier
Copy link
Copy Markdown

This allows us to reserve virtual memory without committing as tested in the alloc_can_reserve_large_parts_of_address_space test. It seems like there's no downside to this approach for Protection::None allocations, though I've only got a superficial understanding of the Windows virtual memory system.

FWIW I ran into this here: bytecodealliance/wasmtime#10512

This allows us to reserve virtual memory without commiting as tested in the `alloc_can_reserve_large_parts_of_address_space` test. It seems like there's no downside to this approach for Protection::None allocations, though I've only got a superficial understanding of the Windows virtual memory system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant