• Michael Anthony Knyszek's avatar
    runtime: fix sysUsed for Windows · 213845f7
    Michael Anthony Knyszek authored
    sysUsed on Windows cares about the result from the VirtualAlloc syscall
    returning exactly the address that was passed to it. However,
    VirtualAlloc aligns the address its given to the kernel's allocation
    granularity, so the returned address may not be the same.
    
    Note that this wasn't an issue in the past because we only sysUsed
    regions owned by spans, and spans are always a multiple of 8K, which
    is a multiple of the allocation granularity on most Windows machines.
    
    Change-Id: I3f5ccd63c6bbbd8b7995945ecedee17573b31667
    Reviewed-on: https://go-review.googlesource.com/c/153677
    Run-TryBot: Michael Knyszek <mknyszek@google.com>
    Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    213845f7
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...