diff options
Diffstat (limited to 'src/pkg/runtime/cpuprof.c')
| -rw-r--r-- | src/pkg/runtime/cpuprof.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/cpuprof.c b/src/pkg/runtime/cpuprof.c index 8117c9732a..1c34b9e6f6 100644 --- a/src/pkg/runtime/cpuprof.c +++ b/src/pkg/runtime/cpuprof.c @@ -127,7 +127,7 @@ runtime·SetCPUProfileRate(intgo hz) { uintptr *p; uintptr n; - + // Clamp hz to something reasonable. if(hz < 0) hz = 0; @@ -137,7 +137,7 @@ runtime·SetCPUProfileRate(intgo hz) runtime·lock(&lk); if(hz > 0) { if(prof == nil) { - prof = runtime·SysAlloc(sizeof *prof); + prof = runtime·SysAlloc(sizeof *prof, &mstats.other_sys); if(prof == nil) { runtime·printf("runtime: cpu profiling cannot allocate memory\n"); runtime·unlock(&lk); |
