summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/amd64
AgeCommit message (Collapse)AuthorFilesLines
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý6-1105/+0
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý6-0/+1105
2011-09-13Imported Upstream version 60Ondřej Surý6-1059/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-0/+12
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-2/+10
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-1/+1
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý2-62/+141
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý2-0/+43
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-35/+89
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý2-14/+14
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý4-143/+205
2010-05-21runtime: correct tracebacks for nascent goroutines, even closuresRuss Cox1-1/+86
Fixes issue 780. R=r CC=golang-dev http://codereview.appspot.com/1221042
2010-04-09Run initcgo for all amd64 targets, not just GNU/Linux.Ian Lance Taylor1-1/+8
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-09Support cgo export on amd64.Ian Lance Taylor1-6/+42
R=rsc CC=golang-dev http://codereview.appspot.com/857045
2010-04-05runtime: various arm fixesRuss Cox3-2/+31
* 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-31runtime: make type assertion a runtime.Error, the first of manyRuss Cox1-13/+0
R=r CC=golang-dev http://codereview.appspot.com/805043
2010-03-30gc: add panic and recover (still unimplemented in runtime)Russ Cox1-6/+19
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: run deferred calls at GoexitRuss Cox1-6/+6
baby step toward panic+recover. Fixes issue 349. R=r CC=golang-dev http://codereview.appspot.com/825043
2010-03-23runtime: add CallersRuss Cox1-112/+83
cut copies of traceback from 6 to 1. R=r CC=golang-dev http://codereview.appspot.com/703041
2010-01-25in C and asm, replace pkg·name with ·nameRuss Cox3-30/+30
(eliminate assumption of package global name space, make code easier to move between packages). R=r CC=golang-dev http://codereview.appspot.com/194072
2009-12-08Fix stack on FreeBSD / add stack check across the boardDevon H. O'Dell1-0/+10
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-18bugs in memmove:Rob Pike1-2/+3
- has arguments (no stack split) - MOVL does not set condition R=ken2, rsc http://codereview.appspot.com/156086
2009-11-17copy tweaksRuss Cox1-0/+90
* move memmove to arch-specific subdirectories * add memmove for arm * add copyright notices marking them as copied from Inferno R=ken2 http://codereview.appspot.com/156061
2009-11-17FreeBSD-specific porting work.Devon H. O'Dell1-3/+2
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-15runtime: avoid crash in CallerRuss Cox1-1/+1
Fixes issue 176. R=r http://codereview.appspot.com/154146
2009-10-15rename sys functions to runtime,Russ Cox3-29/+29
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-12stack overflow debugging and fix.Russ Cox1-4/+16
* in 6l, -K already meant check for stack underflow. add -KK to mean double-check stack overflows even in nosplit functions. * comment out print locks; they deadlock too easily but are still useful to put back for special occasions. * let runcgo assembly switch to scheduler stack without involving scheduler directly. because runcgo gets called from matchmg, it is too hard to keep it from being called on other stacks. R=r DELTA=94 (65 added, 18 deleted, 11 changed) OCL=35591 CL=35604
2009-10-038c, 8l dynamic loading support.Russ Cox1-0/+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-08-31use correct pc for printing fn+%#x in tracebacksRuss Cox1-5/+6
R=austin DELTA=12 (2 added, 0 deleted, 10 changed) OCL=34098 CL=34120
2009-08-14Account for CALL instructions before looking up the functionAustin Clements1-3/+3
at PC, to deal with functions that end with a CALL instruction. Special case known call-by-return functions. R=rsc APPROVED=rsc DELTA=12 (6 added, 6 deleted, 0 changed) OCL=33255 CL=33279
2009-08-13Don't try to account for CALL instruction in 0th frame.Austin Clements1-3/+3
R=rsc APPROVED=rsc DELTA=9 (4 added, 3 deleted, 2 changed) OCL=33238 CL=33251
2009-07-28make every func literal expression allocate,Russ Cox1-32/+34
so that == on func means that the functions originated in the same execution of a func literal or definition. before, there was an inconsistency: func() {x++} != func() {x++} but func() {} == func() {} this CL makes the second case != too, just like make(map[int]int) != make(map[int]int) R=r DELTA=202 (71 added, 62 deleted, 69 changed) OCL=32393 CL=32398
2009-07-27fix gc bug causing make smoketest to die in cmd/gofmt.Russ Cox1-0/+1
saving of sp was too far away from use in scanstack; the stack had changed since the sp was saved. R=r DELTA=9 (4 added, 2 deleted, 3 changed) OCL=32232 CL=32237
2009-07-08reflection for functionsRuss Cox1-0/+37
add channel send type check (thanks austin). fix type mismatch message. R=r DELTA=241 (225 added, 5 deleted, 11 changed) OCL=31370 CL=31375
2009-06-17Forgot to check in 386/asm.h.Russ Cox2-31/+5
Rather than do that, fix build by generating asm.h automatically. R=r DELTA=97 (48 added, 36 deleted, 13 changed) OCL=30449 CL=30452
2009-06-17runtime: stack growth adjustments, cleanupRuss Cox3-70/+122
* keep coherent SP/PC in gobuf (i.e., SP that would be in use at that PC) * gogocall replaces setspgoto, should work better in presence of link registers * delete unused system calls only amd64; 386 is now broken R=r DELTA=548 (183 added, 183 deleted, 182 changed) OCL=30381 CL=30442
2009-06-09mv src/lib to src/pkgRob Pike3-0/+474
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102