]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: collect profiles even while on g0 stack
authorAlex Brainman <alex.brainman@gmail.com>
Fri, 4 Oct 2013 03:53:34 +0000 (13:53 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Fri, 4 Oct 2013 03:53:34 +0000 (13:53 +1000)
Fixes #6417

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/14231047

src/pkg/runtime/os_windows.c

index c3e296aa670a116fc171f22dce6f091c53f5ebbf..44c9b342de45dc22facbe5e29718001742055285 100644 (file)
@@ -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;