summaryrefslogtreecommitdiff
path: root/src/pkg/runtime
AgeCommit message (Collapse)AuthorFilesLines
2009-11-19reflect fixesRuss Cox1-0/+6
R=r http://codereview.appspot.com/156104
2009-11-19runtime: mask signals during signal handler on OS XRuss Cox2-2/+2
Fixes issue 265. R=r CC=golang-dev http://codereview.appspot.com/157084
2009-11-18runtime: fix bug on darwin/amd64 - bad g in bsdthread_startRuss Cox1-2/+2
R=r http://codereview.appspot.com/157077
2009-11-18More FreeBSD-touchups. Thundercats are GOOOOO!Devon H. O'Dell2-8/+8
R=rsc CC=golang-dev http://codereview.appspot.com/157074 Committer: Russ Cox <rsc@golang.org>
2009-11-18bugs in memmove:Rob Pike3-6/+7
- has arguments (no stack split) - MOVL does not set condition R=ken2, rsc http://codereview.appspot.com/156086
2009-11-18Remove unnecessary execute bits.William Josephson11-0/+0
R=rsc http://codereview.appspot.com/156077 Committer: Russ Cox <rsc@golang.org>
2009-11-18Add an intptr type to runtime; needed in FreeBSDDevon H. O'Dell2-1/+3
In thread.c, we need to cast to whatever the native size of intptr is on the system, but we only have uintptr available. They're the same size, but can't do signed casts without this one :). R=rsc CC=golang-dev http://codereview.appspot.com/156073 Committer: Russ Cox <rsc@golang.org>
2009-11-17FreeBSD/i386 workDevon H. O'Dell8-22/+492
This patchset gets Go to pretty much the same state that FreeBSD/amd64 is in. R=rsc http://codereview.appspot.com/157055 Committer: Russ Cox <rsc@golang.org>
2009-11-17runtime: add ARM memmoveRuss Cox1-0/+248
R=ken2 http://codereview.appspot.com/156063
2009-11-17copy tweaksRuss Cox5-131/+181
* 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-17runtime: two trivial but important bug fixesRuss Cox2-2/+2
R=r http://codereview.appspot.com/156059
2009-11-17bug in copyKen Thompson1-1/+1
R=rsc http://codereview.appspot.com/156056
2009-11-17install copy predefinedKen Thompson4-0/+164
did not test 386, but should work shouldnt matter if copy is not used R=rsc http://codereview.appspot.com/156055
2009-11-17runtime: do not create new threads during malloc.Russ Cox1-2/+5
the signal handling stack is a different size than the normal stack, so it cannot be allocated using the backup stack allocator. Fixes issue 250. R=agl1 CC=golang-dev http://codereview.appspot.com/157044
2009-11-17improve documentation of runtime. there was no mention of types.Rob Pike1-1/+3
R=rsc CC=golang-dev http://codereview.appspot.com/157042
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'Dell11-3/+690
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-16runtime: make signal handler work on 386Russ Cox2-7/+18
R=r http://codereview.appspot.com/154171
2009-11-15runtime: avoid crash in CallerRuss Cox2-2/+2
Fixes issue 176. R=r http://codereview.appspot.com/154146
2009-11-13runtime: warn about SELinux based mmap failures on Linux.Adam Langley5-5/+32
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-12fix style nit ignored in previous clKai Backman1-1/+1
R=rsc http://codereview.appspot.com/152110
2009-11-12add support for pre arm v6 cas. set GOARM=5 to enable.Kai Backman3-1/+46
R=rsc http://codereview.appspot.com/154101
2009-11-11 add cache flushing call after generating closure.Kai Backman2-0/+15
go/test: passes 88% (306/347) R=rsc http://codereview.appspot.com/152089
2009-11-10update old comment: things are much better nowRuss Cox1-5/+6
R=r http://codereview.appspot.com/152057
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-2/+2
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
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-11-05gofmt-ify io, json, runtime, encodingRobert Griesemer2-49/+50
R=rsc http://go/go-review/1017056
2009-10-29clone and futexKai Backman2-11/+95
go/test: passes 99% (343/347) R=rsc http://go/go-review/1016004
2009-10-28Fix bug when sending via select.Adam Langley1-32/+19
selfree maintains a cache of Select structures for several sizes. In newselect, we'll use an entry from the cache if one is found. However, the Scase structures corresponding to a send may have been allocated for the wrong size. In this case we'll write off the end of the Scase into random memory and, generally, read some amount of junk in the receive. This patch fixes the issue by removing the cache, on the advice of rsc. R=rsc CC=go-dev http://go/go-review/1016002
2009-10-28mysterious bug: runtime.acid wasn't getting rebuiltRuss Cox2-5/+5
when switching architectures. fix bug twice: make sure clean removes the file, and generate into architecture-specific file names. R=r http://go/go-review/1013018
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-23fix off by 4 bug in morestack (lr again). remove storing of r0Kai Backman2-14/+2
now that all arguments are passed on the stack. go/test: passes 89% (310/345) R=rsc APPROVED=rsc DELTA=33 (13 added, 14 deleted, 6 changed) OCL=36009 CL=36022
2009-10-22fix off by 4 in newproc arg copying.Kai Backman1-2/+2
R=rsc APPROVED=rsc DELTA=4 (0 added, 0 deleted, 4 changed) OCL=36001 CL=36004
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-22fix build: no acidRob Pike1-2/+4
R=rsc http://go/go-review/1014005
2009-10-22fix build after Mercurial move.Russ Cox1-17/+2
various missing or incorrect files. R=r CC=go-dev http://go/go-review/1014004
2009-10-20bug162, over and overRuss Cox1-0/+14
R=ken OCL=35919 CL=35919
2009-10-19getcallerpc and setcallerpcKai Backman1-11/+7
go/test: passes 87% (303/345) R=rsc APPROVED=rsc DELTA=19 (5 added, 6 deleted, 8 changed) OCL=35903 CL=35906
2009-10-19first version of closures. test/closure doesn't yet pass.Kai Backman1-0/+122
go/test: passes 87% (300/343) R=rsc APPROVED=rsc DELTA=125 (125 added, 0 deleted, 0 changed) OCL=35893 CL=35900
2009-10-15rename sys functions to runtime,Russ Cox34-330/+330
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-15move math out of runtime.Russ Cox1-45/+0
a step toward enforcing package boundaries, necessary to eliminate global package name space. R=r DELTA=581 (310 added, 271 deleted, 0 changed) OCL=35805 CL=35823
2009-10-15test/64bit.go passes but doesn't generate properly yet.Kai Backman1-3/+9
R=rsc APPROVED=rsc DELTA=235 (98 added, 38 deleted, 99 changed) OCL=35789 CL=35813
2009-10-15publish semacquire and semrelease for use by sync.Russ Cox2-3/+14
more enforcing package boundaries R=r DELTA=46 (13 added, 15 deleted, 18 changed) OCL=35806 CL=35806
2009-10-14casKai Backman1-2/+17
R=rsc APPROVED=rsc DELTA=31 (1 added, 8 deleted, 22 changed) OCL=35752 CL=35757
2009-10-14excise some internal references.Russ Cox1-2/+1
R=r DELTA=209 (65 added, 114 deleted, 30 changed) OCL=35718 CL=35721
2009-10-13write stack traces and panics to stderrRob Pike3-17/+22
R=rsc DELTA=31 (5 added, 3 deleted, 23 changed) OCL=35700 CL=35700
2009-10-12changed 5c 64 bit word ordering to little endian so it matchesKai Backman1-13/+13
5g. fixes to 64 bit code gen. added (finally) function to do shifts properly. go/test: passes 83% (287/342) R=rsc APPROVED=rsc DELTA=156 (50 added, 53 deleted, 53 changed) OCL=35589 CL=35616
2009-10-12stack overflow debugging and fix.Russ Cox6-24/+33
* 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