Commit 1e957b62 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: fix windows cpu profiling

R=golang-dev, alex.brainman
CC=golang-dev
https://golang.org/cl/7407044
parent 353ce60f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment