]> Cypherpunks repositories - gostls13.git/commit
runtime: introduce gcMode type for GC modes
authorAustin Clements <austin@google.com>
Thu, 24 Sep 2015 18:30:09 +0000 (14:30 -0400)
committerAustin Clements <austin@google.com>
Fri, 2 Oct 2015 19:55:41 +0000 (19:55 +0000)
commitfbd2660af3042217a4c831e9d4e24a4e97c296cb
tree2d9a107dcd58467add8c67a1038bd21a4d0bb671
parent1b84bb8c7cefb29e8aa976504905a7bdc1c74e6f
runtime: introduce gcMode type for GC modes

Currently, the GC modes constants are untyped and functions pass them
around as ints. Clean this up by introducing a proper type for these
constant.

Change-Id: Ibc022447bdfa203644921fbb548312d7e2272e8d
Reviewed-on: https://go-review.googlesource.com/14981
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/mgc.go