summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/malloc.h
AgeCommit message (Collapse)AuthorFilesLines
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-18/+25
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-18/+28
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-45/+43
2010-04-22runtime: closures, defer bug fix for Native ClientRuss Cox1-0/+4
Enable package tests for Native Client build. R=r CC=golang-dev http://codereview.appspot.com/957042
2010-04-09runtime: delete malx, skip_depth argument to mallocRuss Cox1-2/+2
remove internal functions from traces in gopprof instead. R=r CC=golang-dev http://codereview.appspot.com/855046
2010-03-29runtime: a couple more memory stats.Russ Cox1-0/+2
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-9/+31
expvar: default publishings for cmdline, memstats godoc: import expvar R=r CC=golang-dev http://codereview.appspot.com/815041
2010-03-26runtime: run all finalizers in a single goroutine.Russ Cox1-3/+11
eliminate second pass of mark+sweep by scanning finalizer table specially. R=r CC=golang-dev http://codereview.appspot.com/782041
2010-03-23runtime: add memory profiling, disabled.Russ Cox1-1/+17
no way to get the data out yet. add prototype for runtime.Callers, missing from last CL. R=r CC=golang-dev http://codereview.appspot.com/713041
2010-03-08runtime: clock garbage collection on bytes allocated, not pages in useRuss Cox1-5/+7
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-5/+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
2010-02-10runtime: tighten garbage collectorRuss Cox1-0/+1
* specialize sweepspan as sweepspan0 and sweepspan1. * in sweepspan1, inline "free" to avoid expensive mlookup. R=iant CC=golang-dev http://codereview.appspot.com/206060
2010-02-10runtime: garbage collection + malloc performanceRuss Cox1-5/+18
* add bit tracking finalizer status, avoiding getfinalizer lookup * add ability to allocate uncleared memory R=iant CC=golang-dev http://codereview.appspot.com/207044
2010-02-08runtime: allow arbitrary return type in SetFinalizer.Russ Cox1-2/+1
finalize chan, to free OS X semaphore inside Lock. os: finalize File, to close fd. Fixes issue 503. R=ken2 CC=golang-dev http://codereview.appspot.com/204065
2010-02-08runtime: instrument malloc + garbage collector.Russ Cox1-1/+10
add simple garbage collection benchmark. R=iant CC=golang-dev http://codereview.appspot.com/204053
2010-02-03finalizers; merge package malloc into package runtimeRuss Cox1-0/+6
R=r, cw CC=golang-dev http://codereview.appspot.com/198085
2010-01-13runtime cleanup.Russ Cox1-0/+4
* move memory code into $GOOS-specific directory. * allow printing of static strings < 256 bytes. (dynamic strings will bump maxstring as they are allocated.) * use cgo2c for runtime.mal. R=r, dho CC=golang-dev http://codereview.appspot.com/186143
2009-12-07runtime: don't touch pages of memory unnecessarily.Russ Cox1-3/+3
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-1/+8
* 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-06-09mv src/lib to src/pkgRob Pike1-0/+308
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102