]> Cypherpunks repositories - gostls13.git/commit
runtime: introduce a type for span states
authorAustin Clements <austin@google.com>
Fri, 9 Sep 2016 14:31:27 +0000 (10:31 -0400)
committerAustin Clements <austin@google.com>
Mon, 3 Oct 2016 21:59:45 +0000 (21:59 +0000)
commit6879dbde4e6dceceb272b83fc6682e97b9de2fa1
tree9751af3ce380bc3e27c484a6db6f4978819b9295
parent5a6e511c614a158cb58150fb62bfbc207a33922d
runtime: introduce a type for span states

Currently span states are untyped constants and the field is just a
uint8. Make this more type-safe by introducing a type for the span
state.

Change-Id: I369bf59fe6e8234475f4921611424fceb7d0a6de
Reviewed-on: https://go-review.googlesource.com/30141
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mheap.go