summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/mheap.c
AgeCommit message (Collapse)AuthorFilesLines
2011-02-18Imported Upstream version 2011.02.15Ondřej Surý1-7/+8
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-33/+63
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-57/+65
2010-03-29runtime: a couple more memory stats.Russ Cox1-0/+1
now runtime.MemStats.Sys really is the sum of all the other Sys fields. R=r CC=golang-dev http://codereview.appspot.com/843041
2010-03-29runtime: more malloc statisticsRuss Cox1-2/+10
expvar: default publishings for cmdline, memstats godoc: import expvar R=r CC=golang-dev http://codereview.appspot.com/815041
2010-03-08runtime: clock garbage collection on bytes allocated, not pages in useRuss Cox1-3/+12
This keeps fragmentation from delaying garbage collections (and causing more fragmentation). Cuts fresh godoc (with indexes) from 261M to 166M (120M live). Cuts toy wc program from 50M to 8M. Fixes issue 647. R=r, cw CC=golang-dev http://codereview.appspot.com/257041
2010-02-10runtime: delete MHeapMapCache, which is uselessRuss Cox1-17/+1
because free needs to mark the block as freed to coordinate with the garbage collector. (in C++ free can blindly put the block on the free list, no questions asked, so the cache saves some work.) R=iant CC=golang-dev http://codereview.appspot.com/206069
2009-12-07runtime: don't touch pages of memory unnecessarily.Russ Cox1-1/+0
cuts working size for hello world from 6 MB to 1.2 MB. still some work to be done, but diminishing returns. R=r http://codereview.appspot.com/165080
2009-12-03runtime: malloc fixesRuss Cox1-0/+5
* throw away dead code * add mlookup counter * add malloc counter * set up for blocks with no pointers Fixes issue 367. R=r http://codereview.appspot.com/165050
2009-09-22changes to accommodate nacl:Russ Cox1-0/+2
* change ldt0setup to set GS itself; nacl won't let us do it. * change breakpoint to INT $3 so 8l can translate to HLT for nacl. * panic if closure is needed on nacl. * do not try to access symbol table on nacl. * mmap in 64kB chunks. nacl support: * system calls, threading, locks. R=r DELTA=365 (357 added, 5 deleted, 3 changed) OCL=34880 CL=34906
2009-06-09mv src/lib to src/pkgRob Pike1-0/+333
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102