• Gustavo Niemeyer's avatar
    runtime: don't use twice the memory with grsec-like kernels · 65b036c3
    Gustavo Niemeyer authored
    grsec needs the FIXED flag to be provided to mmap, which
    works now.  That said, when the allocation fails to be made
    in the specific address, we're still given back a writable
    page.  This change will unmap that page to avoid using
    twice the amount of memory needed.
    
    It'd also be pretty easy to avoid the extra system calls
    once we detected that the flag is needed, but I'm not sure
    if that edge case is worth the effort.
    
    R=golang-dev, rsc
    CC=golang-dev
    https://golang.org/cl/4634086
    65b036c3
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...