]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: simplify mallocgc flag argument
authorKeith Randall <khr@golang.org>
Wed, 20 Apr 2016 02:35:10 +0000 (19:35 -0700)
committerKeith Randall <khr@golang.org>
Wed, 20 Apr 2016 14:02:22 +0000 (14:02 +0000)
commit001e8e8070e8ed3a578dbad93cc3f70257e965bd
tree13300d3f022b1d24571be6c267979e5d8d0c48e5
parent731531980a36f1fa6434c947c54daf8ba530a65f
runtime: simplify mallocgc flag argument

mallocgc can calculate noscan itself.  The only remaining
flag argument is needzero, so we just make that a boolean arg.

Fixes #15379

Change-Id: I839a70790b2a0c9dbcee2600052bfbd6c8148e20
Reviewed-on: https://go-review.googlesource.com/22290
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/chan.go
src/runtime/malloc.go
src/runtime/mfinal.go
src/runtime/os1_plan9.go
src/runtime/panic.go
src/runtime/select.go
src/runtime/slice.go
src/runtime/string.go