]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.5] runtime: fix recursive GC assist better
authorAustin Clements <austin@google.com>
Thu, 15 Oct 2015 17:25:19 +0000 (13:25 -0400)
committerAustin Clements <austin@google.com>
Thu, 15 Oct 2015 19:33:11 +0000 (19:33 +0000)
commit71a76476627fb0752d1b816406da4e5a6511c2c9
treeb2e4d66dad0a23a0b29f13a83ffafa071982813b
parentc257dfb178f00449dd344204219aad56e3e90de6
[release-branch.go1.5] runtime: fix recursive GC assist better

Commit c257dfb attempted to fix recursive allocation in gcAssistAlloc;
however, it only reduced it: setting gp.gcalloc to 0 isn't sufficient
to disable assists at the beginning of the GC cycle when gp.gcscanwork
is also small or zero.

Fix this recursion more completely by setting gcalloc to a sentinel
value that directly disables assists.

Fixes #12894 (again).

Change-Id: I9599566222d8f540d0b39806846bfc702e6666e5
Reviewed-on: https://go-review.googlesource.com/15891
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/mgcmark.go