]> Cypherpunks repositories - gostls13.git/commit
runtime: simplify MCache
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 22 May 2013 09:29:17 +0000 (13:29 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Wed, 22 May 2013 09:29:17 +0000 (13:29 +0400)
commitc4cfef075edcbf9391933152ceede9948595d15a
tree8f577125e1f107ece4abddf3afca80565d405b73
parent23dec8d1907f85d487b2adf3f0672c2cc02e4ce6
runtime: simplify MCache
The nlistmin/size thresholds are copied from tcmalloc,
but are unnecesary for Go malloc. We do not do explicit
frees into MCache. For sparse cases when we do (mainly hashmap),
simpler logic will do.

R=rsc, dave, iant
CC=gobot, golang-dev, r, remyoudompheng
https://golang.org/cl/9373043
src/pkg/runtime/malloc.h
src/pkg/runtime/mcache.c
src/pkg/runtime/mcentral.c