diff options
Diffstat (limited to 'src/pkg/runtime/malloc.go')
-rw-r--r-- | src/pkg/runtime/malloc.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pkg/runtime/malloc.go b/src/pkg/runtime/malloc.go index 49afc6736..5b1825a04 100644 --- a/src/pkg/runtime/malloc.go +++ b/src/pkg/runtime/malloc.go @@ -397,9 +397,8 @@ func profilealloc(mp *m, x unsafe.Pointer, size uintptr) { } c.next_sample = next } - mp.scalararg[0] = uintptr(size) - mp.ptrarg[0] = x - onM(&mprofMalloc_m) + + mProf_Malloc(x, size) } // force = 1 - do GC regardless of current heap usage |