]> Cypherpunks repositories - gostls13.git/commit
runtime: introduce a type for lfstacks
authorAustin Clements <austin@google.com>
Tue, 7 Mar 2017 21:38:29 +0000 (16:38 -0500)
committerAustin Clements <austin@google.com>
Sun, 19 Mar 2017 22:42:24 +0000 (22:42 +0000)
commit13ae271d5d007dcd630d9f43d6a43016b9af6e5c
treee49da3d7b91e5a729a717ee60b9e6025d67f6063
parent2805d206890344f685579ac5b72ba2d9e5da485d
runtime: introduce a type for lfstacks

The lfstack API is still a C-style API: lfstacks all have unhelpful
type uint64 and the APIs are package-level functions. Make the code
more readable and Go-style by creating an lfstack type with methods
for push, pop, and empty.

Change-Id: I64685fa3be0e82ae2d1a782a452a50974440a827
Reviewed-on: https://go-review.googlesource.com/38290
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/export_test.go
src/runtime/lfstack.go
src/runtime/mgc.go
src/runtime/mgcwork.go