summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-02-06tgs's gc bug.Russ Cox1-3/+10
R=r DELTA=10 (7 added, 0 deleted, 3 changed) OCL=24577 CL=24577
2009-02-06add a trivial visitor method, just for funRob Pike2-1/+30
R=gri DELTA=31 (30 added, 1 deleted, 0 changed) OCL=24568 CL=24575
2009-02-06closures - 6g supportRuss Cox8-61/+251
R=ken OCL=24501 CL=24566
2009-02-06closures - runtime and debugger support, test caseRuss Cox4-6/+159
R=r DELTA=257 (250 added, 1 deleted, 6 changed) OCL=24509 CL=24565
2009-02-056c: byte* - byte* should be int64, not int32.Russ Cox1-1/+1
R=ken OCL=24507 CL=24507
2009-02-05further pedagogy: a channel that satisfies the HTTP server interfaceRob Pike1-0/+18
R=rsc DELTA=18 (18 added, 0 deleted, 0 changed) OCL=24482 CL=24484
2009-02-05bug064Russ Cox3-4/+22
make f(g()) work when g returns multiple args with names different than f expects. func swap(a, b int) (c, d int) { return b, a } swap(swap(1,2)) R=ken OCL=24474 CL=24476
2009-02-05take advantage of methods on funcsRuss Cox1-14/+1
R=r DELTA=14 (0 added, 13 deleted, 1 changed) OCL=24458 CL=24470
2009-02-05do not generate Init proto for sys and unsafe.Russ Cox2-2/+5
R=ken OCL=24455 CL=24455
2009-02-05heuristic to stop pulling .6 in from .aRuss Cox3-25/+3
is not right if the .6 is only for data and the init function. instead of that, pick up everything and let the dead code/data eliminator throw away the parts that weren't useful. R=r DELTA=25 (0 added, 22 deleted, 3 changed) OCL=24446 CL=24446
2009-02-05allow methods on funcs.Russ Cox1-0/+1
R=ken OCL=24442 CL=24442
2009-02-05fix build on thresher - missing constantsRuss Cox1-0/+25
TBR=r OCL=24439 CL=24439
2009-02-04clean up flags package a bit.Rob Pike1-28/+31
fix a bug in Usage message - would print current value instead of default. R=rsc DELTA=53 (7 added, 4 deleted, 42 changed) OCL=24323 CL=24323
2009-02-04fix interface not satisifed message:Russ Cox1-1/+1
x.go:13: T is not I - missing M() NOT x.go:13: T is not I - missing Mfunc() R=ken OCL=24316 CL=24316
2009-02-03fix build. missed this fileRuss Cox1-11/+4
TBR=r OCL=24269 CL=24269
2009-02-03libmach:Russ Cox4-278/+728
* heuristic to go farther during stack traces. * significantly improved Linux thread handing. acid: * update to new libmach interface. prof: * use new libmach interface. * multiple thread support (derived from Rob's copy). * first steps toward pprof-like graphs: keep counters indexed by pc,callerpc pairs. R=r DELTA=909 (576 added, 123 deleted, 210 changed) OCL=24240 CL=24259
2009-02-03bufio:Russ Cox8-172/+251
* avoid large copies * NewBufRead, NewBufWrite never fail * add BufReadWrite io: * add io.Close http, google/net/rpc: * add, use http.Conn.Hijack R=r DELTA=416 (202 added, 123 deleted, 91 changed) OCL=24153 CL=24238
2009-02-02minor tweaksRuss Cox2-11/+8
R=r DELTA=9 (2 added, 5 deleted, 2 changed) OCL=24107 CL=24152
2009-02-02flesh out http server.Russ Cox5-147/+545
convert to uppercase names. R=r DELTA=613 (460 added, 61 deleted, 92 changed) OCL=24139 CL=24145
2009-02-026g return struct fix:Russ Cox3-9/+10
make t->width of funarg struct be width of struct. emit MOVSL for 4-byte copy. R=ken OCL=24108 CL=24111
2009-02-02marginally better thread debugging on Linux.Russ Cox1-18/+47
if you clone inside a traced pid, the child is automatically attached and stopped, apparently. R=r DELTA=63 (41 added, 12 deleted, 10 changed) OCL=24096 CL=24106
2009-01-31slightly better code for the frog fixRob Pike1-2/+2
R=ken OCL=24025 CL=24025
2009-01-31Complain about control characters that are not white space.Rob Pike1-1/+26
Bitten by invisible chars too many times. R=ken OCL=24024 CL=24024
2009-01-30can finally close this TODO - 6l was brokenRuss Cox1-2/+0
R=r DELTA=2 (0 added, 2 deleted, 0 changed) OCL=23993 CL=23995
2009-01-30keep line number history even whenRuss Cox2-2/+5
throwing away dead code at end of file. also fix an uninitialized memory error found by valgrind. R=r DELTA=7 (5 added, 2 deleted, 0 changed) OCL=23991 CL=23994
2009-01-30avoid memcpy(x, x),Russ Cox1-1/+1
which valgrind complains about. R=ken OCL=23990 CL=23990
2009-01-30two uses of uninitialized memory,Russ Cox2-2/+3
picked up by valgrind. fixes test/escape.go on linux. R=ken OCL=23971 CL=23971
2009-01-30print format bugRuss Cox1-1/+1
R=ken OCL=23965 CL=23965
2009-01-30update compiler to new func rulesRuss Cox14-118/+141
R=ken OCL=23958 CL=23961
2009-01-30update go code tree to new func rules.Russ Cox13-57/+57
R=r DELTA=367 (111 added, 59 deleted, 197 changed) OCL=23957 CL=23960
2009-01-29if take address of local, move to heap.Russ Cox11-77/+322
heuristic to not print bogus strings. fix one error message format. R=ken OCL=23849 CL=23851
2009-01-29optimizer bug w STOstringKen Thompson3-8/+54
R=r OCL=23820 CL=23820
2009-01-28fix possible infinite recursion in eqtype.Russ Cox2-3/+5
don't use intermediate register to move 32-or-fewer-bit immediate constants into memory. R=ken OCL=23726 CL=23726
2009-01-28clean up range grammarRuss Cox1-17/+10
R=ken OCL=23712 CL=23714
2009-01-28Use explicit allspan list instead ofRuss Cox7-40/+43
trying to find all the places where spans might be recorded. Free can cascade into complicated span manipulations that move them from list to list; the old code had the possibility of accidentally processing a span twice or jumping to a different list, causing an infinite loop. R=r DELTA=70 (28 added, 25 deleted, 17 changed) OCL=23704 CL=23710
2009-01-28additions to array container:Robert Griesemer3-48/+153
- added Slice, Cut, InsertArray, AppendArray - renamed Remove -> Delete (so we have: Insert, Delete, Cut) - more factoring of code - extra tests (could use some more) R=r,rsc DELTA=179 (127 added, 22 deleted, 30 changed) OCL=23648 CL=23685
2009-01-27bug 135Ken Thompson2-7/+25
R=r OCL=23646 CL=23646
2009-01-27make "size 6.out" work on mac.Russ Cox1-5/+11
R=r DELTA=11 (6 added, 0 deleted, 5 changed) OCL=23629 CL=23631
2009-01-27change dotdotdot interfaces to be structs,Russ Cox4-18/+20
not pointers to structs. fix defered dotdotdot. R=r,ken DELTA=25 (7 added, 5 deleted, 13 changed) OCL=23620 CL=23625
2009-01-27pragma textflagKen Thompson8-19/+27
fixes latent bugs in go and defer R=r OCL=23613 CL=23613
2009-01-27various race conditions.Russ Cox3-14/+38
R=r DELTA=43 (29 added, 5 deleted, 9 changed) OCL=23608 CL=23611
2009-01-27spellingKen Thompson2-6/+5
R=r OCL=23602 CL=23602
2009-01-27deferKen Thompson10-30/+141
R=r OCL=23592 CL=23592
2009-01-26gc #0. mark and sweep collector.Russ Cox14-47/+439
R=r,gri DELTA=472 (423 added, 2 deleted, 47 changed) OCL=23522 CL=23541
2009-01-26assignment count mismatch: 2 = 1.Russ Cox2-3/+9
R=ken OCL=23534 CL=23534
2009-01-26bug134Russ Cox2-7/+14
R=ken OCL=23532 CL=23532
2009-01-26bug133Russ Cox3-7/+16
R=ken OCL=23528 CL=23528
2009-01-26in hash implementation, if data >= 8, align to 8.Russ Cox1-7/+16
R=ken OCL=23519 CL=23521
2009-01-26print(map) and print(chan) as pointers.Russ Cox3-5/+5
R=ken OCL=23520 CL=23520
2009-01-26improved logging formats.Rob Pike2-84/+142
R=rsc DELTA=210 (118 added, 60 deleted, 32 changed) OCL=23508 CL=23518