• Austin Clements's avatar
    runtime: tidy mheap.freeSpan · 3f86d7cc
    Austin Clements authored
    freeSpan currently takes a mysterious "acct int32" argument. This is
    really just a boolean and actually just needs to match the "large"
    argument to alloc in order to balance out accounting.
    
    To make this clearer, replace acct with a "large bool" argument that
    must match the call to mheap.alloc.
    
    Change-Id: Ibc81faefdf9f0583114e1953fcfb362e9c3c76de
    Reviewed-on: https://go-review.googlesource.com/c/138655
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    3f86d7cc
mheap.go 52.1 KB