aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mgcmark.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2018-08-10 10:33:05 -0400
committerAustin Clements <austin@google.com>2018-08-20 18:19:28 +0000
commit083938df14c0602a44d055bd3f4427980cf51c27 (patch)
treeeb34c4f102e6c5494633fbf9981d362a7ddc3912 /src/runtime/mgcmark.go
parentd02169d380a762863147d57b7665cb31de0a4ee7 (diff)
downloadgo-083938df14c0602a44d055bd3f4427980cf51c27.tar.gz
go-083938df14c0602a44d055bd3f4427980cf51c27.zip
runtime: use gList for injectglist
Change-Id: Id5af75eaaf41f43bc6baa6d3fe2b852a2f93bb6f Reviewed-on: https://go-review.googlesource.com/129400 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/runtime/mgcmark.go')
-rw-r--r--src/runtime/mgcmark.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/mgcmark.go b/src/runtime/mgcmark.go
index d6ee7ff6fa..69ff895512 100644
--- a/src/runtime/mgcmark.go
+++ b/src/runtime/mgcmark.go
@@ -603,7 +603,8 @@ func gcAssistAlloc1(gp *g, scanWork int64) {
// new assists from going to sleep after this point.
func gcWakeAllAssists() {
lock(&work.assistQueue.lock)
- injectglist(work.assistQueue.q.popList().head.ptr())
+ list := work.assistQueue.q.popList()
+ injectglist(&list)
unlock(&work.assistQueue.lock)
}