summaryrefslogtreecommitdiff
path: root/src/runtime
AgeCommit message (Collapse)AuthorFilesLines
2008-09-27change print(float) from 5 to 7 sig digitsKen Thompson1-1/+1
R=r OCL=16045 CL=16045
2008-09-26go/acid/goRuss Cox3-6/+5
R=r DELTA=99 (95 added, 1 deleted, 3 changed) OCL=15983 CL=15992
2008-09-26test and fix non-blocking chan ops on buffered chansRuss Cox1-1/+18
R=ken DELTA=68 (19 added, 0 deleted, 49 changed) OCL=15966 CL=15969
2008-09-24cleanup; sys.sleep can go.Russ Cox6-44/+0
R=r OCL=15786 CL=15792
2008-09-24get rid of per-G Note, avoids per-G kernel semaphore on Mac.Russ Cox2-14/+18
2.14u 19.82s 22.17r 6.out 100000 # old 1.87u 0.43s 2.31r 6.out 100000 # new R=r OCL=15762 CL=15772
2008-09-24only use mach kernel semaphores for actual contention.Russ Cox2-8/+33
running rob's powser p.go: 3.21u 2.58s 5.80r 6.out # old 1.48u 0.05s 1.54r 6.out # new R=r OCL=15748 CL=15750
2008-09-22change string([]byte) to pass array, rather than &a[0],Russ Cox1-0/+9
to string convert. if the byte array has length 0, the computation of &a[0] throws an index bounds error. for fixed size arrays, this ends up invoking arrays2d unnecessarily, but it works. R=ken DELTA=304 (44 added, 28 deleted, 232 changed) OCL=15674 CL=15678
2008-09-22vectors bugKen Thompson1-37/+83
R=r OCL=15664 CL=15664
2008-09-22implement spec: when main.main returns, the program exitsRuss Cox1-2/+7
R=r DELTA=9 (7 added, 2 deleted, 0 changed) OCL=15628 CL=15643
2008-09-22test cleanupRuss Cox4-12/+30
- do not print tracebacks if $GOTRACEBACK=0 - set GOTRACEBACK=0 during tests - filter out pc numbers in errors R=r DELTA=70 (22 added, 30 deleted, 18 changed) OCL=15618 CL=15642
2008-09-22now method/interface codeKen Thompson4-197/+212
R=r OCL=15627 CL=15627
2008-09-20another async select bugKen Thompson1-0/+1
R=r OCL=15599 CL=15599
2008-09-19fix bugs in asynch selectKen Thompson1-17/+51
R=r OCL=15586 CL=15586
2008-09-19add gobuild.Russ Cox2-20/+0
use gobuild-generated Makefile for math and os. other makefile tweaks. move math/main.go to test/math.go R=r OCL=15529 CL=15537
2008-09-18proper handling of signals.Russ Cox8-36/+137
do not run init on g0. R=r DELTA=161 (124 added, 23 deleted, 14 changed) OCL=15490 CL=15497
2008-09-17fix printing of -(1<<63)Russ Cox1-4/+8
R=r OCL=15441 CL=15445
2008-09-17add network listening & testsRuss Cox1-1/+1
R=r,presotto OCL=15410 CL=15440
2008-09-14methods on any typeKen Thompson2-3/+5
-- but only *struct tested R=r OCL=15326 CL=15326
2008-09-13Automated g4 rollback of changelist 15312.Ken Thompson1-4/+3
*** Reason for rollback *** <enter reason for rollback> *** Original change description *** correct signal name thru package rename R=r OCL=15313 CL=15313
2008-09-13correct signal name thru package renameKen Thompson1-3/+4
R=r OCL=15312 CL=15312
2008-09-13remove special trap-handling code for array out of bounds -Rob Pike2-76/+11
compiler doesn't generate them any more R=ken OCL=15309 CL=15309
2008-09-121 got rid if static 'fn wo return' testKen Thompson1-0/+12
2 added dynamic calls to throw for array bounds and 'fn wo return' 3 small optimization on index[constant] R=r OCL=15281 CL=15281
2008-09-12fix up linux trap handling - INTB 5 gives SEGVRob Pike4-38/+60
R=rsc OCL=15244 CL=15244
2008-09-12fix silly portability bugRob Pike4-2/+8
R=gri OCL=15238 CL=15238
2008-09-12- catch trace trapsRob Pike6-15/+58
- disassemble the instructions in a trace trap to see if it's a run-time trap - if so, print relevant info - avoid double-printing traceback on panic R=ken,rsc DELTA=66 (50 added, 7 deleted, 9 changed) OCL=15199 CL=15224
2008-09-11bug075Ken Thompson1-0/+1
R=r OCL=15192 CL=15192
2008-09-09go threads for OS XRuss Cox10-68/+666
R=r OCL=14944 CL=15013
2008-09-08fix bug in stack limit calculation - was setting limit reg in wrong place.Rob Pike2-9/+5
R=ken OCL=14981 CL=14981
2008-08-27arraysKen Thompson3-0/+175
R=r OCL=14603 CL=14603
2008-08-11- fix signedness bug in sys.Inf()Rob Pike1-1/+1
- add NaN, Inf printing to fmt - fix a couple of bugs in fmt - add a test for fmt R=ken OCL=14092 CL=14092
2008-08-05kill trailing white space.Russ Cox9-42/+42
(apparently my first attempt didn't work.) R=r OCL=13888 CL=13888
2008-08-05* comment, clean up schedulerRuss Cox14-425/+541
* rewrite lock implementation to be correct (tip: never assume that an algorithm you found in a linux man page is correct.) * delete unneeded void* arg from clone fn * replace Rendez with Note * comment mal better * use 6c -w, fix warnings * mark all assembly functions 7 R=r DELTA=828 (338 added, 221 deleted, 269 changed) OCL=13884 CL=13886
2008-08-05allow pointers as keys in maps, treating them the same as ints - ptr eq not ↵Rob Pike2-4/+5
value equality R=ken,gri OCL=13879 CL=13879
2008-08-04acid. works only on Linux for nowRuss Cox1-2/+6
R=r DELTA=7031 (6906 added, 113 deleted, 12 changed) OCL=13847 CL=13852
2008-08-04first cut at multithreading. works on Linux.Russ Cox10-74/+818
* kick off new os procs (machs) as needed * add sys·sleep for testing * add Lock, Rendez * properly lock mal, sys·newproc, scheduler * linux syscall arg #4 is in R10, not CX * chans are not multithread-safe yet * multithreading disabled by default; set $gomaxprocs=2 (or 1000) to turn it on This should build on OS X but may not. Rob and I will fix soon after submitting. TBR=r OCL=13784 CL=13842
2008-08-03Remove doubled #elseRuss Cox1-2/+2
R=r DELTA=4 (2 added, 2 deleted, 0 changed) OCL=13775 CL=13779
2008-08-02slightly gratuitous reorg of scheduler codeRuss Cox1-18/+20
* rename select (very loaded word) nextgoroutine * separate out "enter scheduler" (sys·gosched) from the scheduler itself (scheduler) R=r APPROVED=r DELTA=36 (17 added, 15 deleted, 4 changed) OCL=13772 CL=13774
2008-07-29fix a commentRob Pike1-1/+1
fix a register name R=gri OCL=13548 CL=13548
2008-07-28print tracebacks for all goroutines, not just the crashing oneRob Pike5-2/+21
R=ken OCL=13518 CL=13518
2008-07-26select/chanKen Thompson1-185/+216
R=r DELTA=517 (137 added, 98 deleted, 282 changed) OCL=13495 CL=13495
2008-07-25selectKen Thompson1-8/+1
R=r APPROVED=r DELTA=41 (24 added, 13 deleted, 4 changed) OCL=13480 CL=13480
2008-07-25selectKen Thompson2-42/+122
R=r APPROVED=r DELTA=147 (94 added, 14 deleted, 39 changed) OCL=13477 CL=13477
2008-07-25read selectKen Thompson1-5/+66
R=r APPROVED=r DELTA=120 (108 added, 0 deleted, 12 changed) OCL=13468 CL=13468
2008-07-24selectKen Thompson4-26/+243
R=r APPROVED=r DELTA=638 (433 added, 21 deleted, 184 changed) OCL=13426 CL=13438
2008-07-20start of selectKen Thompson3-55/+136
random bugs fixed SVN=128149
2008-07-19init filename vs pkgnameKen Thompson1-1/+1
SVN=128117
2008-07-19initializationKen Thompson1-0/+1
SVN=128115
2008-07-17div bugKen Thompson1-6/+2
[]ptr bug proc reuses old g* structures differnt assignment of offsets to parameters SVN=127888
2008-07-16new (more fifo) schedulint algorithmKen Thompson2-15/+37
newproc will reuse dead procs SVN=127565
2008-07-16back out last chan fixKen Thompson1-6/+4
allow print of pointers SVN=127548