summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/linux/386
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý4-0/+728
2011-09-13Imported Upstream version 60Ondřej Surý4-699/+0
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-0/+8
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý2-0/+15
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý3-13/+66
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý2-9/+8
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-8/+0
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-0/+1
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý4-76/+98
2010-06-28Only catch all signals if os/signal package imported.Ian Lance Taylor1-1/+3
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 Cox1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/1083041
2010-04-13runtime: better trace for fault due to nil pointer callRuss Cox1-3/+11
R=r CC=golang-dev http://codereview.appspot.com/854048
2010-04-08runtime: turn divide by zero, nil dereference into panicsRuss Cox2-9/+69
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: various arm fixesRuss Cox1-1/+1
* 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-02-08runtime: instrument malloc + garbage collector.Russ Cox1-0/+17
add simple garbage collection benchmark. R=iant CC=golang-dev http://codereview.appspot.com/204053
2010-01-25in C and asm, replace pkg·name with ·nameRuss Cox1-1/+1
(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-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 Cox1-2/+3
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 Symonds1-2/+16
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'Dell1-0/+1
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-13runtime: warn about SELinux based mmap failures on Linux.Adam Langley1-2/+3
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-26Get the right sigaction struct for the 386 rt_sigaction systemIan Lance Taylor2-7/+6
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-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 Cox1-1/+1
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 Cox2-12/+19
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-06-17update 386 to new runtime (CL 30381)Russ Cox1-60/+70
R=r DELTA=298 (119 added, 81 deleted, 98 changed) OCL=30427 CL=30443
2009-06-09mv src/lib to src/pkgRob Pike4-0/+468
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102