• Austin Clements's avatar
    runtime: use len(h.spans) to indicate mapped region · 5915ce66
    Austin Clements authored
    Currently we set the len and cap of h.spans to the full reserved
    region of the address space and track the actual mapped region
    separately in h.spans_mapped. Since we have both the len and cap at
    our disposal, change things so len(h.spans) tracks how much of the
    spans array is mapped and eliminate h.spans_mapped. This simplifies
    mheap and means we'll get nice "index out of bounds" exceptions if we
    do try to go off the end of the spans rather than a SIGSEGV.
    
    Change-Id: I8ed9a1a9a844d90e9fd2e269add4704623dbdfe6
    Reviewed-on: https://go-review.googlesource.com/30533
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    5915ce66
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...