mirror of
https://github.com/golang/go
synced 2024-11-26 17:46:57 -07:00
runtime: collect profiles even while on g0 stack
Fixes #6417 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/14231047
This commit is contained in:
parent
8e5866e60d
commit
4207897dcc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user