• Michael Anthony Knyszek's avatar
    runtime: call mmap with MAP_FIXED on BSDs in race mode · 7ef718f1
    Michael Anthony Knyszek authored
    This change makes it so that reserving more of the address space for the
    heap calls mmap with MAP_FIXED in race mode. Race mode requires certain
    guarantees on where the heap is located in the address space, and on
    Darwin 10.10 it appears that the kernel may end up ignoring the hint
    quite often (#26475). Using MAP_FIXED is relatively OK in race mode
    because nothing else should be mapped in the memory region provided by
    the initial hints.
    
    Fixes #26475.
    
    Change-Id: Id7ac1534ee74f6de491bc04441f27dbda09f0285
    Reviewed-on: https://go-review.googlesource.com/c/153897Reviewed-by: 's avatarAustin Clements <austin@google.com>
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    7ef718f1
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...