• Russ Cox's avatar
    runtime: simpler heap map, memory allocation · 4608feb1
    Russ Cox authored
    The old heap maps used a multilevel table, but that
    was overkill: there are only 1M entries on a 32-bit
    machine and we can arrange to use a dense address
    range on a 64-bit machine.
    
    The heap map is in bss.  The assumption is that if
    we don't touch the pages they won't be mapped in.
    
    Also moved some duplicated memory allocation
    code out of the OS-specific files.
    
    R=r
    CC=golang-dev
    https://golang.org/cl/4118042
    4608feb1
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...