]> Cypherpunks repositories - gostls13.git/commit
runtime: fix gctrace=1
authorKeith Randall <khr@golang.org>
Fri, 18 Jul 2014 09:05:21 +0000 (13:05 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Fri, 18 Jul 2014 09:05:21 +0000 (13:05 +0400)
commit2425a2e32f57a5df3a048a06431089fd83e8cec9
treef4b62ccd2ddbcae6ccdd4fa1f7dfad420e2e54dc
parent5d580336821b05684c00ebaf9fb4a8318a40788e
runtime: fix gctrace=1

updatememstats is called on both the m and g stacks.
Call into flushallmcaches correctly.  flushallmcaches
can only run on the M stack.

This is somewhat temporary.  once ReadMemStats is in
Go we can have all of this code M-only.

LGTM=dvyukov
R=golang-codereviews, dvyukov
CC=golang-codereviews
https://golang.org/cl/116880043
src/pkg/runtime/mgc0.c