summaryrefslogtreecommitdiff
path: root/src/pkg/runtime
AgeCommit message (Collapse)AuthorFilesLines
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
2010-02-09runtime: fix FreeBSD buildRuss Cox1-0/+1
stab in the dark but plausible: the kernel does try to return time zone information. http://fxr.watson.org/fxr/source/kern/kern_time.c?v=FREEBSD8#L421 R=iant CC=golang-dev http://codereview.appspot.com/206053
2010-02-08runtime: allow arbitrary return type in SetFinalizer.Russ Cox10-35/+97
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 Cox13-2/+139
add simple garbage collection benchmark. R=iant CC=golang-dev http://codereview.appspot.com/204053
2010-02-07runtime: introduce MemStatsTypeRuss Cox1-3/+5
R=ken2 CC=golang-dev http://codereview.appspot.com/204061
2010-02-06fix commentKai Backman1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/203053
2010-02-046l: move mapped symbol table lower in memoryAndrew Gerrand1-6/+1
Allows binary to run on some Linux system. Fix for issue 365. R=rsc CC=golang-dev http://codereview.appspot.com/199096
2010-02-03os/signal: send SIGCHLDs to IncomingChristopher Wedgwood3-3/+3
R=rsc CC=golang-dev http://codereview.appspot.com/199082 Committer: Russ Cox <rsc@golang.org>
2010-02-03finalizers; merge package malloc into package runtimeRuss Cox9-49/+342
R=r, cw CC=golang-dev http://codereview.appspot.com/198085
2010-02-01nacl: fix build, finally fixed 8l convergence bugRuss Cox1-0/+28
R=r CC=golang-dev http://codereview.appspot.com/199042
2010-02-01gc: add ... T, rework plain ...Russ Cox2-9/+3
No longer a distinct type; now a property of func types. R=ken2 CC=golang-dev http://codereview.appspot.com/197042
2010-01-27gc: implement defer print/println/panic/paniclnRuss Cox2-14/+74
Fixes issue 219. R=ken2, r CC=golang-dev http://codereview.appspot.com/194097
2010-01-26small embedded target for arm.Kai Backman8-0/+129
R=rsc CC=golang-dev http://codereview.appspot.com/193104
2010-01-25in C and asm, replace pkg·name with ·nameRuss Cox36-338/+338
(eliminate assumption of package global name space, make code easier to move between packages). R=r CC=golang-dev http://codereview.appspot.com/194072
2010-01-25runtime, type switch: eliminate package global name space assumptionRuss Cox3-12/+10
bonus: type switch now detects multiple uses of identical interface types. bonus: interface types are now order-independent, following the spec. R=ken2 CC=golang-dev http://codereview.appspot.com/194053
2010-01-24gc: record full package paths in runtime type dataRuss Cox1-0/+3
detect compilation of special package runtime with compiler flag instead of package name. R=ken2 CC=golang-dev http://codereview.appspot.com/193080
2010-01-19runtime: wait to allocate mach semaphores backing Locks until neededRuss Cox1-12/+18
need better management of mach semaphores eventually but this avoids allocating them for uncontended Locks. R=r CC=agl1, golang-dev http://codereview.appspot.com/190079
2010-01-13runtime: add demo running Go on raw (emulated) hwRuss Cox14-0/+385
8l: add GOOS=pchw, stop spelling out all the elf numbers. R=r CC=golang-dev http://codereview.appspot.com/186144
2010-01-13runtime: GS already set up by setldt in Linux/386; remove duplicateDevon H. O'Dell1-3/+0
R=rsc CC=golang-dev http://codereview.appspot.com/186146 Committer: Russ Cox <rsc@golang.org>
2010-01-13runtime cleanup.Russ Cox12-66/+148
* 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-13runtime: reset DF flag after running external code on 386Russ Cox1-0/+4
R=r CC=golang-dev http://codereview.appspot.com/186108
2010-01-12runtime: fix bug in preemption checks; was causing "lock count" panicsRuss Cox2-1/+3
R=r CC=golang-dev http://codereview.appspot.com/186078
2010-01-09runtime: check for preemption due to garbage collectionRuss Cox6-2/+29
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
2010-01-06runtime: close TODO now that 8c bug is fixedRuss Cox2-23/+5
R=r CC=golang-dev http://codereview.appspot.com/183138
2010-01-06Ported runtime to Windows.Hector Chu20-60/+600
R=rsc CC=golang-dev http://codereview.appspot.com/176066 Committer: Russ Cox <rsc@golang.org>
2009-12-18runtime: fix race conditionAdam Langley2-5/+3
(Thanks to ken and rsc for pointing this out) rsc: ken pointed out that there's a race in the new one-lock-per-channel code. the issue is that if one goroutine has gone to sleep doing select { case <-c1: case <-c2: } and then two more goroutines try to send on c1 and c2 simultaneously, the way that the code makes sure only one wins is the selgen field manipulation in dequeue: // if sgp is stale, ignore it if(sgp->selgen != sgp->g->selgen) { //prints("INVALID PSEUDOG POINTER\n"); freesg(c, sgp); goto loop; } // invalidate any others sgp->g->selgen++; but because the global lock is gone both goroutines will be fiddling with sgp->g->selgen at the same time. This results in a 7% slowdown in the single threaded case for a ping-pong microbenchmark. Since the cas predominantly succeeds, adding a simple check first didn't make any difference. R=rsc CC=golang-dev http://codereview.appspot.com/180068
2009-12-17 first stub for softfloats, intercepts float instructions and skipsKai Backman4-1/+73
them in the stream. R=rsc http://codereview.appspot.com/174052
2009-12-16runtime: if os/signal is not in use, crash onRuss Cox12-63/+81
most signals, so that ordinary programs can be killed, for example. Fixes issue 434. R=dsymonds1 CC=golang-dev, hoisie http://codereview.appspot.com/180064
2009-12-15os/signal: new packageDavid Symonds15-67/+278
Fixes issue 71. R=rsc, r http://codereview.appspot.com/162056 Committer: Russ Cox <rsc@golang.org>
2009-12-15runtime: return zero value in x, ok = <-c when ok == falseRuss Cox1-0/+2
Fixes issue 401. R=ken2 http://codereview.appspot.com/180053
2009-12-151) Change default gofmt default settings forRobert Griesemer1-84/+84
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 4th set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180049
2009-12-14runtime: in exitsyscall, avoid confusing garbage collectorRuss Cox1-1/+6
R=r CC=golang-dev http://codereview.appspot.com/178046
2009-12-11Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/srcDevon H. O'Dell1-7/+7
This change removes the necessity to have GOBIN in $PATH, and also doesn't assume that the build is being run from $GOROOT/src. This is a minimal set of necessary changes to get Go to build happily from the FreeBSD ports collection. R=rsc CC=golang-dev http://codereview.appspot.com/171044 Committer: Russ Cox <rsc@golang.org>