runtime: use PAGE_NOACCESS in sysReseve #33327
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Windows version of runtime.sysReseve calls VirtualAlloc with MEM_RESERVE and PAGE_READWRITE, but it should use PAGE_NOACCESS when using MEM_RESERVE.
According to https://devblogs.microsoft.com/oldnewthing/20171227-00/?p=97656
and in particular
Someone would have to try and see what effect this change have on memory used by Go executable before making this change. Maybe by using vmmap or rammap tools.
I am creating this issue before I forget.
/cc @aclements and @zx2c4 because you might be interested.
Alex
The text was updated successfully, but these errors were encountered: