summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/malloc.cgo
AgeCommit message (Collapse)AuthorFilesLines
2010-04-20runtime: rename cgo2c, *.cgo to goc2c, *.gocRuss Cox1-378/+0
to avoid confusion with real cgo R=r CC=golang-dev http://codereview.appspot.com/904046
2010-04-09runtime: delete malx, skip_depth argument to mallocRuss Cox1-11/+5
remove internal functions from traces in gopprof instead. R=r CC=golang-dev http://codereview.appspot.com/855046
2010-03-29runtime: more malloc statisticsRuss Cox1-1/+10
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-1/+1
eliminate second pass of mark+sweep by scanning finalizer table specially. R=r CC=golang-dev http://codereview.appspot.com/782041
2010-03-24runtime: malloc sampling, pprof interfaceRuss Cox1-12/+14
R=r CC=golang-dev http://codereview.appspot.com/719041
2010-03-23runtime: add memory profiling, disabled.Russ Cox1-8/+52
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-3/+3
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-38/+29
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: do not zero blocks on free (this time for sure!)Russ Cox1-1/+0
R=iant CC=golang-dev http://codereview.appspot.com/207054
2010-02-10runtime: garbage collection + malloc performanceRuss Cox1-15/+21
* 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-3/+15
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-0/+4
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-6/+40
R=r, cw CC=golang-dev http://codereview.appspot.com/198085
2010-01-13runtime cleanup.Russ Cox1-35/+0
* 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
2010-01-12runtime: fix bug in preemption checks; was causing "lock count" panicsRuss Cox1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/186078
2010-01-09runtime: check for preemption due to garbage collectionRuss Cox1-1/+2
in various already expensive routines. helps keep cpu utilization up when GOMAXPROCS > 1, but not a full solution. http://groups.google.com/group/golang-nuts/t/7a9535c4136d3e2 R=r CC=golang-dev http://codereview.appspot.com/184043
2009-12-03runtime: malloc fixesRuss Cox1-34/+11
* 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-11-13runtime: warn about SELinux based mmap failures on Linux.Adam Langley1-1/+12
SELinux will cause mmap to fail when we request w+x memory unless the user has configured their policies. We have a warning in make.bash, but it's quite likely that the policy will be reset at some point and then all their binaries start failing. This patch prints a warning on Linux when mmap fails with EACCES. R=rsc CC=golang-dev http://codereview.appspot.com/152086
2009-10-15rename sys functions to runtime,Russ Cox1-3/+3
because they are in package runtime. another step to enforcing package boundaries. R=r DELTA=732 (114 added, 93 deleted, 525 changed) OCL=35811 CL=35824
2009-06-30convert string runtime to use cgo.Russ Cox1-0/+329
now that cgo2c can handle it, merge x.c and x_go.cgo into a single x.cgo, for x=float,malloc,sema. R=r DELTA=1950 (954 added, 996 deleted, 0 changed) OCL=30951 CL=30964