mirror of
https://github.com/golang/go
synced 2024-11-12 09:20:22 -07:00
runtime: fix windows cpu profiling
R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/7407044
This commit is contained in:
parent
353ce60f6e
commit
1e957b6245
@ -1715,7 +1715,8 @@ runtime·sigprof(uint8 *pc, uint8 *sp, uint8 *lr, G *gp)
|
||||
{
|
||||
int32 n;
|
||||
|
||||
if(m == nil || m->mcache == nil)
|
||||
// Windows does profiling in a dedicated thread w/o m.
|
||||
if(!Windows && (m == nil || m->mcache == nil))
|
||||
return;
|
||||
if(prof.fn == nil || prof.hz == 0)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user