diff options
author | Alex Brainman <alex.brainman@gmail.com> | 2013-10-15 14:37:43 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2013-10-15 14:37:43 -0400 |
commit | 9aee98def8e6c6ce6af36ffab1348c1f9356e316 (patch) | |
tree | d4519cd59dedae24c77b849a45f4680b5b3052c4 | |
parent | 043ace1213bc996615fb0551effaa879a68cc4f6 (diff) | |
download | go-9aee98def8e6c6ce6af36ffab1348c1f9356e316.tar.gz go-9aee98def8e6c6ce6af36ffab1348c1f9356e316.zip |
undo CL 14231047 / 2f4c2dde2756
undone because the change slows down profile collection
significantly and unpredictable at times (see comments
at https://golang.org/cl/14231047 for details)
««« original CL description
runtime: collect profiles even while on g0 stack
Fixes #6417
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/14231047
»»»
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/14535046
-rw-r--r-- | src/pkg/runtime/os_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/os_windows.c b/src/pkg/runtime/os_windows.c index 44c9b342de..c3e296aa67 100644 --- a/src/pkg/runtime/os_windows.c +++ b/src/pkg/runtime/os_windows.c @@ -402,7 +402,7 @@ profilem(M *mp) tls = runtime·tls0; gp = *(G**)tls; - if(gp != nil) { + if(gp != nil && gp != mp->g0 && gp->status != Gsyscall) { // align Context to 16 bytes r = (Context*)((uintptr)(&rbuf[15]) & ~15); r->ContextFlags = CONTEXT_CONTROL; |