From: Alex Brainman Date: Fri, 4 Oct 2013 03:53:34 +0000 (+1000) Subject: runtime: collect profiles even while on g0 stack X-Git-Tag: go1.2rc2~69 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4207897dcc27a6badb177df115455153f8d4e843;p=gostls13.git runtime: collect profiles even while on g0 stack Fixes #6417 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/14231047 --- diff --git a/src/pkg/runtime/os_windows.c b/src/pkg/runtime/os_windows.c index c3e296aa67..44c9b342de 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 && gp != mp->g0 && gp->status != Gsyscall) { + if(gp != nil) { // align Context to 16 bytes r = (Context*)((uintptr)(&rbuf[15]) & ~15); r->ContextFlags = CONTEXT_CONTROL;