aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/malloc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/malloc.go')
-rw-r--r--src/runtime/malloc.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go
index 2ac504f9dc..438cd06161 100644
--- a/src/runtime/malloc.go
+++ b/src/runtime/malloc.go
@@ -696,6 +696,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
s = largeAlloc(size, needzero)
})
s.freeindex = 1
+ s.allocCount = 1
x = unsafe.Pointer(s.base())
size = s.elemsize
}