]> Cypherpunks repositories - gostls13.git/commit
runtime: use persistentalloc instead of SysAlloc in FixAlloc
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 10 Jun 2013 05:20:27 +0000 (09:20 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Mon, 10 Jun 2013 05:20:27 +0000 (09:20 +0400)
commit4f514e8691afe7557a01073d766d1a7240269634
tree21585bdc600d775b8f8bbee82ac8dbe682bbb36b
parent83445fdcc3639fc102c11aa1820d592a8615cc86
runtime: use persistentalloc instead of SysAlloc in FixAlloc
Also reduce FixAlloc allocation granulatiry from 128k to 16k,
small programs do not need that much memory for MCache's and MSpan's.

R=golang-dev, khr
CC=golang-dev
https://golang.org/cl/10140044
src/pkg/runtime/malloc.goc
src/pkg/runtime/malloc.h
src/pkg/runtime/mfixalloc.c
src/pkg/runtime/mheap.c