summaryrefslogtreecommitdiff
path: root/src/pkg/runtime
AgeCommit message (Collapse)AuthorFilesLines
2010-04-06another try at clearingKen Thompson1-9/+6
channel recv data. R=rsc CC=golang-dev http://codereview.appspot.com/896041
2010-04-06change channel read to clearKen Thompson1-3/+12
data just read from the channel. this will make it easier to recognize when to garbage collect and finalize. R=rsc CC=golang-dev http://codereview.appspot.com/882043
2010-04-06runtime: two proc bug fixesRuss Cox1-6/+13
1. Fix bug in GOMAXPROCS when trying to cut number of procs Race could happen on any system but was manifesting only on Xen hosted Linux. 2. Fix recover on ARM, where FP != caller SP. R=r CC=golang-dev http://codereview.appspot.com/880043
2010-04-05runtime: fix CallerRuss Cox1-1/+1
log: add test of Caller New regexp in log test is picky and will require some maintenance, but it catches off-by-one mistakes too. Fixes issue 710. R=gri CC=esko.luontola, golang-dev http://codereview.appspot.com/887043
2010-04-05runtime: handle malloc > 2GB correctlyRuss Cox4-18/+18
R=ken2 CC=golang-dev http://codereview.appspot.com/821048
2010-04-05runtime: various arm fixesRuss Cox28-196/+393
* correct symbol table size * do not reorder functions in output * traceback * signal handling * use same code for go + defer * handle leaf functions in symbol table R=kaib, dpx CC=golang-dev http://codereview.appspot.com/884041
2010-04-01runtime: turn run time errors checks into panicsRuss Cox8-94/+76
R=ken2, r CC=golang-dev http://codereview.appspot.com/871042 Committer: Russ Cox <rsc@golang.org>
2010-04-01runtime: correct memory leak in selectRuss Cox1-179/+125
* adds pass 3 to dequeue from channels eagerly various other cleanup/churn: * use switch on cas->send in each pass to factor out common code. * longer goto labels, commented at target * be more agressive about can't happen: throw instead of print + cope. * use "select" instead of "selectgo" in errors * use printf for debug prints when possible R=ken2, ken3 CC=golang-dev, r http://codereview.appspot.com/875041
2010-03-31runtime: make type assertion a runtime.Error, the first of manyRuss Cox9-127/+162
R=r CC=golang-dev http://codereview.appspot.com/805043
2010-03-31gc: implement panic and recoverRuss Cox3-11/+184
R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/831042
2010-03-30runtime: fix arm build, slightly.Russ Cox1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/842042
2010-03-30gc: add panic and recover (still unimplemented in runtime)Russ Cox6-20/+138
main semantic change is to enforce single argument to panic. runtime: change to 1-argument panic. use String method on argument if it has one. R=ken2, r CC=golang-dev http://codereview.appspot.com/812043
2010-03-29runtime: Remove unused runtime.write from linux/amd64Christopher Wedgwood1-17/+9
Also minor reformatting. R=rsc CC=golang-dev http://codereview.appspot.com/845041 Committer: Russ Cox <rsc@golang.org>
2010-03-29runtime: run deferred calls at GoexitRuss Cox6-52/+110
baby step toward panic+recover. Fixes issue 349. R=r CC=golang-dev http://codereview.appspot.com/825043
2010-03-29runtime: a couple more memory stats.Russ Cox7-1/+14
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 Cox6-30/+103
expvar: default publishings for cmdline, memstats godoc: import expvar R=r CC=golang-dev http://codereview.appspot.com/815041
2010-03-26pprof: dump extra heap information at end of heap profileRuss Cox1-0/+24
R=r CC=golang-dev http://codereview.appspot.com/786041
2010-03-26runtime: run all finalizers in a single goroutine.Russ Cox7-121/+152
eliminate second pass of mark+sweep by scanning finalizer table specially. R=r CC=golang-dev http://codereview.appspot.com/782041
2010-03-24runtime: fix mingw build, implement missing destroylock()Alex Brainman1-0/+5
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/747041 Committer: Russ Cox <rsc@golang.org>
2010-03-24runtime: malloc sampling, pprof interfaceRuss Cox9-40/+286
R=r CC=golang-dev http://codereview.appspot.com/719041
2010-03-23runtime: add memory profiling, disabled.Russ Cox11-31/+344
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-23runtime: add CallersRuss Cox7-393/+121
cut copies of traceback from 6 to 1. R=r CC=golang-dev http://codereview.appspot.com/703041
2010-03-23maps access to a missing keyKen Thompson1-2/+4
will return the "zero" value R=rsc CC=golang-dev http://codereview.appspot.com/700041
2010-03-19syscall: mksyscall_mingw.sh emitting shorter calls (to Syscall or Syscall6) ↵Alex Brainman1-15/+12
when there are fewer arguments R=rsc CC=golang-dev http://codereview.appspot.com/622041 Committer: Russ Cox <rsc@golang.org>
2010-03-17Fix build: don't assume that . is on PATH.Ian Lance Taylor1-1/+1
R=rsc TBR=rsc CC=golang-dev http://codereview.appspot.com/610043
2010-03-16runtime: add GOROOT and VersionRuss Cox4-1/+52
R=r CC=golang-dev http://codereview.appspot.com/608041
2010-03-16syscall: more changes to mingw versionAlex Brainman1-8/+19
- mkall now generates syscall stabs automatically - we can call unicode versions of winapi now - introduce GetErrstr function to fetch error text given errno - general cleanup R=rsc CC=golang-dev http://codereview.appspot.com/562041 Committer: Russ Cox <rsc@golang.org>
2010-03-16gofmt: more consistent formatting of const/var declsRobert Griesemer1-3/+3
- gofmt -w src misc - only manually modified file: src/pkg/go/printer/nodes.go R=rsc CC=golang-dev, r http://codereview.appspot.com/606041
2010-03-15runtime: lock finalizer table accessesRuss Cox1-4/+18
R=r CC=golang-dev http://codereview.appspot.com/462043
2010-03-09syscall: minimal mingw version of syscall to call windows dllsAlex Brainman4-2/+47
lots of missing parts, but builds and can call dlls, see a sample code in syscall_mingw.go R=rsc CC=golang-dev http://codereview.appspot.com/218042 Committer: Russ Cox <rsc@golang.org>
2010-03-09identical complex implementationKen Thompson2-0/+37
for 6g and 8g. can also be used for 5g. 5g is still a stub. R=rsc CC=golang-dev http://codereview.appspot.com/362041
2010-03-08runtime: clock garbage collection on bytes allocated, not pages in useRuss Cox7-17/+57
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-03-056g complex type usableKen Thompson1-1/+4
8g and 5g have stubs to ignore complex R=rsc CC=golang-dev http://codereview.appspot.com/257042
2010-03-04cc: disallow ... argument unless NOSPLIT is set.Russ Cox4-4/+21
check that NOSPLIT functions don't use too much stack. correct some missing NOSPLITs in the runtime library. Fixes bug reported in https://groups.google.com/group/golang-nuts/t/efff68b73941eccf R=ken2 CC=golang-dev http://codereview.appspot.com/236041
2010-02-25gc: implement []int(string) and []byte(string)Russ Cox1-0/+31
R=ken2 CC=golang-dev http://codereview.appspot.com/224060
2010-02-25Use consistent types in .h file and .c file.Ian Lance Taylor2-2/+2
R=rsc CC=golang-dev http://codereview.appspot.com/224053
2010-02-24Install runtime.h and cgocall.h.Ian Lance Taylor1-0/+7
This permits cgo generated code to use these header files even if the Go sources are not around. R=rsc CC=golang-dev http://codereview.appspot.com/224045
2010-02-22runtime: work around Linux kernel bug in futexRuss Cox1-14/+6
Fixes issue 420. R=r CC=golang-dev http://codereview.appspot.com/218065
2010-02-19fixed bug in mpconst float multiply by 0.Ken Thompson2-1/+28
more complex -- constants, variables and print. R=rsc CC=golang-dev http://codereview.appspot.com/217061
2010-02-18combined pchw and embedded into tiny. added section on arm to READMEKai Backman21-142/+58
R=rsc CC=golang-dev http://codereview.appspot.com/194151 Committer: Russ Cox <rsc@golang.org>
2010-02-18more complex - constantsKen Thompson1-1/+1
import and export R=rsc CC=golang-dev http://codereview.appspot.com/214050
2010-02-17new types complex, complex64 and complex128Ken Thompson1-0/+9
only front-end compiler work. best to do thin in 3 steps 1. frontend 2. backend 3. lib R=rsc CC=golang-dev http://codereview.appspot.com/214042
2010-02-16runtime: fix bug in Caller documentationRuss Cox1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/207110
2010-02-12runtime: dummy gettime for mingw/386.Russ Cox1-0/+9
Fixes issue 598. R=adg CC=golang-dev http://codereview.appspot.com/206089
2010-02-10runtime: delete MHeapMapCache, which is uselessRuss Cox7-133/+33
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-10arm: fix build on androidRuss Cox1-0/+28
R=kaib CC=golang-dev http://codereview.appspot.com/206059
2010-02-10runtime: tighten garbage collectorRuss Cox3-62/+112
* 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: 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 Cox9-86/+131
* 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-09fix NaCl build for latest runtime changesRuss Cox2-0/+21
R=iant CC=golang-dev http://codereview.appspot.com/206052