diff options
Diffstat (limited to 'src/pkg/runtime/mprof.cgo')
-rw-r--r-- | src/pkg/runtime/mprof.cgo | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkg/runtime/mprof.cgo b/src/pkg/runtime/mprof.cgo index 50bcaec3c..0cddb243d 100644 --- a/src/pkg/runtime/mprof.cgo +++ b/src/pkg/runtime/mprof.cgo @@ -44,8 +44,10 @@ stkbucket(uintptr *stk, int32 nstk) uintptr h; Bucket *b; - if(buckhash == nil) + if(buckhash == nil) { buckhash = SysAlloc(BuckHashSize*sizeof buckhash[0]); + mstats.buckhash_sys += BuckHashSize*sizeof buckhash[0]; + } // Hash stack. h = 0; |