]> Cypherpunks repositories - gostls13.git/commit
runtime: eliminate allspans snapshot
authorAustin Clements <austin@google.com>
Thu, 6 Oct 2016 01:22:33 +0000 (21:22 -0400)
committerAustin Clements <austin@google.com>
Tue, 25 Oct 2016 22:33:02 +0000 (22:33 +0000)
commit575b1dda4ec845aea6b5c475e9d748dc76d1bc06
tree423152afc5ab82338ece64659c3deb20c0e20add
parentc95a8e458fdf9f3cb0c176ac92a513e5dc9b32c1
runtime: eliminate allspans snapshot

Now that sweeping and span marking use the sweep list, there's no need
for the work.spans snapshot of the allspans list. This change
eliminates the few remaining uses of it, which are either dead code or
can use allspans directly, and removes work.spans and its support
functions.

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