]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.garbage] runtime: add gc work buffer tryGet and put fast paths
authorRick Hudson <rlh@golang.org>
Mon, 14 Mar 2016 16:17:48 +0000 (12:17 -0400)
committerRick Hudson <rlh@golang.org>
Wed, 27 Apr 2016 21:55:02 +0000 (21:55 +0000)
commit1354b32cd70f2702381764fd595dd2faa996840c
tree0d7037b41cc57a1003277c8cf55d527adab58b7d
parentf8d0d4fd59b6cb6f875eac7753f036b10a28f995
[dev.garbage] runtime: add gc work buffer tryGet and put fast paths

The complexity of the GC work buffers put and tryGet
prevented them from being inlined. This CL simplifies
the fast path thus enabling inlining. If the fast
path does not succeed the previous put and tryGet
functions are called.

Change-Id: I6da6495d0dadf42bd0377c110b502274cc01acf5
Reviewed-on: https://go-review.googlesource.com/20704
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mgcmark.go
src/runtime/mgcwork.go