• Austin Clements's avatar
    runtime: replace _MaxMem with maxAlloc · d7691d05
    Austin Clements authored
    Now that we have memLimit, also having _MaxMem is a bit confusing.
    
    Replace it with maxAlloc, which better conveys what it limits. We also
    define maxAlloc slightly differently: since it's now clear that it
    limits allocation size, we can account for a subtle difference between
    32-bit and 64-bit.
    
    Change-Id: Iac39048018cc0dae7f0919e25185fee4b3eed529
    Reviewed-on: https://go-review.googlesource.com/85890
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    d7691d05
chan.go 18.8 KB