summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/linux
AgeCommit message (Collapse)AuthorFilesLines
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý20-2947/+0
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý20-0/+2947
2011-09-13Imported Upstream version 60Ondřej Surý20-2851/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-0/+3
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý5-12/+69
2011-05-04Imported Upstream version 57upstream/57Ondřej Surý1-2/+13
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý8-1/+58
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý15-65/+257
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý7-25/+55
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý2-8/+17
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý6-21/+20
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý20-332/+433
2010-06-28Only catch all signals if os/signal package imported.Ian Lance Taylor3-3/+9
Fixes issue 776. R=rsc CC=golang-dev http://codereview.appspot.com/1745041
2010-06-12runtime: fix 386 signal handler bugRuss Cox1-11/+27
Cannot assume that g == m->curg at time of signal. Must save actual g and restore. Fixes flaky crashes with messages like throw: malloc mlookup throw: malloc/free - deadlock throw: unwindstack on self throw: free mlookup (and probably others) when running cgo. R=iant CC=golang-dev http://codereview.appspot.com/1648043
2010-05-19runtime: avoid allocation for fixed stringsRuss Cox3-3/+3
R=r CC=golang-dev http://codereview.appspot.com/1083041
2010-04-13runtime: better trace for fault due to nil pointer callRuss Cox3-7/+27
R=r CC=golang-dev http://codereview.appspot.com/854048
2010-04-09Run initcgo for all amd64 targets, not just GNU/Linux.Ian Lance Taylor1-7/+0
This is required to make cgo export work on Darwin. Note that this corrects the stack alignment when calling initcgo to that required by gcc on amd64. R=rsc CC=golang-dev http://codereview.appspot.com/907041
2010-04-08runtime: turn divide by zero, nil dereference into panicsRuss Cox13-35/+393
tested on linux/amd64, linux/386, linux/arm, darwin/amd64, darwin/386. freebsd untested; will finish in a separate CL. for now all the panics are errorStrings. richer structures can be added as necessary once the mechanism is shaked out. R=r CC=golang-dev http://codereview.appspot.com/906041
2010-04-05runtime: handle malloc > 2GB correctlyRuss Cox1-6/+6
R=ken2 CC=golang-dev http://codereview.appspot.com/821048
2010-04-05runtime: various arm fixesRuss Cox8-112/+211
* 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-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-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-10arm: fix build on androidRuss Cox1-0/+28
R=kaib CC=golang-dev http://codereview.appspot.com/206059
2010-02-08runtime: allow arbitrary return type in SetFinalizer.Russ Cox1-0/+5
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 Cox2-0/+32
add simple garbage collection benchmark. R=iant CC=golang-dev http://codereview.appspot.com/204053
2010-02-03os/signal: send SIGCHLDs to IncomingChristopher Wedgwood1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/199082 Committer: Russ Cox <rsc@golang.org>
2010-01-25in C and asm, replace pkg·name with ·nameRuss Cox4-12/+12
(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-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 Cox1-0/+40
* 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-06Ported runtime to Windows.Hector Chu1-6/+9
R=rsc CC=golang-dev http://codereview.appspot.com/176066 Committer: Russ Cox <rsc@golang.org>
2009-12-16runtime: if os/signal is not in use, crash onRuss Cox3-20/+22
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 Symonds4-23/+61
Fixes issue 71. R=rsc, r http://codereview.appspot.com/162056 Committer: Russ Cox <rsc@golang.org>
2009-12-08Fix stack on FreeBSD / add stack check across the boardDevon H. O'Dell2-0/+2
FreeBSD was passing stk as the new thread's stack base, while stk is the top of the stack in go. The added check should cause a trap if this ever comes up in any new ports, or regresses in current ones. R=rsc CC=golang-dev http://codereview.appspot.com/167055 Committer: Russ Cox <rsc@golang.org>
2009-11-18Remove unnecessary execute bits.William Josephson3-0/+0
R=rsc http://codereview.appspot.com/156077 Committer: Russ Cox <rsc@golang.org>
2009-11-17syscall: use correct pointer in recvfrom/sendto.Russ Cox1-13/+13
linux/386 stack trace: use 32-bit hex. Fixes issue 159. R=r http://codereview.appspot.com/154178
2009-11-17FreeBSD-specific porting work.Devon H. O'Dell1-0/+1
cgo/libmach remain unimplemented. However, compilers, runtime, and packages are 100%. I still need to go through and implement missing syscalls (at least make sure they're all listed), but for all shipped functionality, this is done. Ship! ;) R=rsc, VenkateshSrinivas http://codereview.appspot.com/152142 Committer: Russ Cox <rsc@golang.org>
2009-11-13runtime: warn about SELinux based mmap failures on Linux.Adam Langley2-4/+6
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-11-11 add cache flushing call after generating closure.Kai Backman1-0/+11
go/test: passes 88% (306/347) R=rsc http://codereview.appspot.com/152089
2009-11-05 make 5g executables run on android/arm hardware. change OABIKai Backman1-8/+20
usage to EABI. go/test: passes 85% (296/347) on random android phone. R=rsc http://go/go-review/1024003
2009-10-29clone and futexKai Backman1-5/+87
go/test: passes 99% (343/347) R=rsc http://go/go-review/1016004
2009-10-26Get the right sigaction struct for the 386 rt_sigaction systemIan Lance Taylor3-9/+20
call. This uses the header files from a 32-bit Ubuntu Hardy system. The use of _LOOSE_KERNEL_NAMES seems right. The -D__ARCH_SI_UID_T works around a bug which appears to be fixed in later Linux versions. R=rsc http://go/go-review/1013015
2009-10-25proper syscall convention for armKai Backman1-2/+2
R=rsc http://go/go-review/1015009
2009-10-22Fix the sigaction declaration to match the system for Linux.Ian Lance Taylor1-1/+1
I don't know whether Darwin needs a change here. R=rsc http://go/go-review/1013010
2009-10-22s/pc/PC/ in traceback output to match amd64.Ian Lance Taylor1-1/+1
test/run expects to see "PC". R=rsc http://go/go-review/1015002
2009-10-15rename sys functions to runtime,Russ Cox4-12/+12
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-10-038c, 8l dynamic loading support.Russ Cox3-13/+20
better mach binaries. cgo working on darwin+linux amd64+386. eliminated context switches - pi is 30x faster. add libcgo to build. on snow leopard: - non-cgo binaries work; all tests pass. - cgo binaries work on amd64 but not 386. R=r DELTA=2031 (1316 added, 626 deleted, 89 changed) OCL=35264 CL=35304
2009-09-30cgo working on linux/386Russ Cox1-0/+7
R=r DELTA=70 (47 added, 4 deleted, 19 changed) OCL=35167 CL=35171
2009-09-22changes to accommodate nacl:Russ Cox1-0/+7
* 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-09-21convert 386 to use %gs instead of %fs for extern register.Russ Cox1-29/+20
required for nacl and may be nicer for ffi, because %gs is the standard register for thread-local storage. R=ken OCL=34861 CL=34866
2009-09-18changed 5c calling convention to use stack exclusively for inKai Backman1-2/+4
params. a number of fixes to assembly routines that assumed R0 had the first arg. one stack offset fix, arm pushes the link register on stack top. go/test: passes 65% (235/364) tests R=rsc APPROVED=rsc DELTA=20 (11 added, 0 deleted, 9 changed) OCL=34809 CL=34812