]> Cypherpunks repositories - gostls13.git/commit
runtime: replace _MaxMem with maxAlloc
authorAustin Clements <austin@google.com>
Tue, 2 Jan 2018 02:51:47 +0000 (21:51 -0500)
committerAustin Clements <austin@google.com>
Thu, 15 Feb 2018 21:12:26 +0000 (21:12 +0000)
commitd7691d055a7ab39a0d437eb5e20751dc1e339c2a
tree0ba675a54e6cd9a50345d3040604177c1f550aea
parent90666b8a3d5545f4295d9c2517ad607ce5d45e52
runtime: replace _MaxMem with maxAlloc

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: Rick Hudson <rlh@golang.org>
src/runtime/chan.go
src/runtime/malloc.go
src/runtime/slice.go
src/runtime/string.go