summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-04-06net: use chan bool instead of chan *netFD to avoid cycleRuss Cox1-8/+8
The cycle is *netFD -> cw chanl *netFD in struct -> same *netFD in channel read buffer. Because channels are finalized, the cycle makes them uncollectable. A better fix is to make channels not finalized anymore, and that will happen, but this is an easy, reasonable workaround until then. Another good fix would be to zero the channel receive buffer entry after the receive. That too will happen. R=r CC=golang-dev http://codereview.appspot.com/875043
2010-04-06flags: better tests.Rob Pike2-18/+138
R=rsc CC=golang-dev http://codereview.appspot.com/864044
2010-04-06runtime: two proc bug fixesRuss Cox1-6/+13
1. Fix bug in GOMAXPROCS when trying to cut number of procs Race could happen on any system but was manifesting only on Xen hosted Linux. 2. Fix recover on ARM, where FP != caller SP. R=r CC=golang-dev http://codereview.appspot.com/880043
2010-04-06Change goyacc to be reentrant.Roger Peppe3-605/+532
Instead of calling the package scope Lex function, Parse now takes an argument which is used to do the lexing. I reverted to having the generated switch code inside Parse rather than a separate function because the function needs 7 arguments or a context structure, which seems unnecessary. I used yyrun(), not the original $A so that it's possible to run the backquoted code through gofmt. R=rsc, ken2, ken3 CC=golang-dev http://codereview.appspot.com/879041 Committer: Ken Thompson <ken@golang.org>
2010-04-06replace original float instruction with jump to make branchesKai Backman1-11/+12
to float instructions work correctly. R=rsc CC=golang-dev http://codereview.appspot.com/870044
2010-04-06fix deps.bash. \t does not mean tab in some seds.Rob Pike1-2/+4
also: add /dev/null to the ls args to repair handling of empty dependency lists. R=rsc CC=golang-dev http://codereview.appspot.com/883045
2010-04-06syscall package: document that errno is zeroed on successGiles Lean1-0/+2
This is a documentation enhancement only, without any code change. The rationale for documenting this precisely is that Unix programmers who "know" that errno's value is undefined after a successful system call may be surprised otherwise and search to be sure that a zero errno may be relied upon after successful calls. R=r, rsc1, rsc CC=golang-dev http://codereview.appspot.com/812044 Committer: Russ Cox <rsc@golang.org>
2010-04-06GNU/Linux sed requires \? rather than ?. Just use * instead.Ian Lance Taylor1-1/+1
R=rsc, r CC=golang-dev http://codereview.appspot.com/810043 Committer: Russ Cox <rsc@golang.org>
2010-04-05libcgo: initial mingw port work - builds but untestedJoe Poirier5-2/+94
R=rsc CC=golang-dev http://codereview.appspot.com/812041 Committer: Russ Cox <rsc@golang.org>
2010-04-05io/ioutil: fix bug in ReadFile when Open succeeds but Stat failsRuss Cox1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/867044
2010-04-05runtime: fix CallerRuss Cox2-2/+2
log: add test of Caller New regexp in log test is picky and will require some maintenance, but it catches off-by-one mistakes too. Fixes issue 710. R=gri CC=esko.luontola, golang-dev http://codereview.appspot.com/887043
2010-04-05http: fix documentation exampleRuss Cox1-6/+7
R=adg CC=golang-dev http://codereview.appspot.com/813043
2010-04-05cmath: new packageCharles L. Dorian17-0/+1715
Complex math function package. Still needs more special case checking. R=rsc CC=golang-dev http://codereview.appspot.com/874041 Committer: Russ Cox <rsc@golang.org>
2010-04-05deps.bash: be less strict about format of x.go linesRuss Cox1-1/+1
R=iant CC=golang-dev http://codereview.appspot.com/862042
2010-04-05runtime: handle malloc > 2GB correctlyRuss Cox4-18/+18
R=ken2 CC=golang-dev http://codereview.appspot.com/821048
2010-04-05crypto/tls: good defaultsRuss Cox2-1/+61
R=agl1 CC=golang-dev http://codereview.appspot.com/851041
2010-04-05runtime: various arm fixesRuss Cox31-200/+401
* 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-04-04gc: good syntax error for defer func() {} - missing final ()Russ Cox1-0/+4
R=ken2 CC=golang-dev http://codereview.appspot.com/855044
2010-04-04nntp: new package, NNTP clientConrad Meyer4-0/+962
R=rsc, rsc1 CC=golang-dev http://codereview.appspot.com/808041 Committer: Russ Cox <rsc@golang.org>
2010-04-05run.bash: remove MAKEFLAGS=-j4 to prevent crashing on freebsdAndrew Gerrand1-1/+0
R=rsc CC=golang-dev http://codereview.appspot.com/881044
2010-04-02debug/proc: fix typo in package documentationRobert Griesemer1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/829044
2010-04-02syscall: implementing some mingw syscalls required by os packageAlex Brainman11-29/+571
R=rsc CC=golang-dev http://codereview.appspot.com/770041 Committer: Russ Cox <rsc@golang.org>
2010-04-01runtime: turn run time errors checks into panicsRuss Cox26-200/+134
R=ken2, r CC=golang-dev http://codereview.appspot.com/871042 Committer: Russ Cox <rsc@golang.org>
2010-04-01debug/macho: fix error message formatRobert Griesemer1-2/+2
R=rsc CC=golang-dev http://codereview.appspot.com/836046
2010-04-01debug/macho: don't crash when reading non-Mach-O filesRobert Griesemer2-1/+11
R=rsc CC=golang-dev http://codereview.appspot.com/838046
2010-04-01runtime: correct memory leak in selectRuss Cox1-179/+125
* adds pass 3 to dequeue from channels eagerly various other cleanup/churn: * use switch on cas->send in each pass to factor out common code. * longer goto labels, commented at target * be more agressive about can't happen: throw instead of print + cope. * use "select" instead of "selectgo" in errors * use printf for debug prints when possible R=ken2, ken3 CC=golang-dev, r http://codereview.appspot.com/875041
2010-03-31build script tweaksRuss Cox4-49/+84
factor out environment variable checks. infer $GOROOT etc during build if not set. it's still necessary to set them for yourself to use the standard Makefiles. when running all.bash, don't recompile all the go packages in run.bash, since make.bash already did. R=r CC=golang-dev http://codereview.appspot.com/609042
2010-03-31testing/regexp: use recover.Rob Pike2-61/+32
R=rsc CC=golang-dev http://codereview.appspot.com/816042 Committer: Rob Pike <r@golang.org>
2010-04-01json: use panic/recover to handle errors in MarshalAndrew Gerrand1-36/+21
R=r, gri CC=golang-dev http://codereview.appspot.com/872041
2010-04-01Delete xgb from the main repository. It has moved toNigel Tao7-5521/+0
http://code.google.com/p/x-go-binding/ R=rsc CC=golang-dev http://codereview.appspot.com/846043
2010-03-31gc: fix alignment on non-amd64Russ Cox1-1/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/870041
2010-03-31tabwriter: use panic/recover to handle errorsRobert Griesemer1-50/+47
R=rsc, r CC=golang-dev http://codereview.appspot.com/864042
2010-03-31regexp: use panic/recover to handle errorsRob Pike1-72/+50
R=rsc, gri CC=golang-dev http://codereview.appspot.com/821046
2010-03-31runtime: make type assertion a runtime.Error, the first of manyRuss Cox9-127/+162
R=r CC=golang-dev http://codereview.appspot.com/805043
2010-03-31gc: implement panic and recoverRuss Cox15-30/+238
R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/831042
2010-03-30Unicode: fix stupid typo in comment.Rob Pike1-2/+2
R=rsc CC=golang-dev http://codereview.appspot.com/864041
2010-03-30Unicode: provide an ability to supplement the case-mapping tablesRob Pike6-5/+133
in character and string case mapping routines. Add a custom mapper for Turkish and Azeri. A more general solution for deriving the case information from Unicode's SpecialCasing.txt will require more work. Fixes issue 703. R=rsc, rsc1 CC=golang-dev, mdakin http://codereview.appspot.com/824043
2010-03-30godoc: support for title and subtitle headers when serving .html docsRobert Griesemer2-17/+27
and use it to show version (date) of go spec Fixes issue 68. R=rsc CC=golang-dev, r http://codereview.appspot.com/848042
2010-03-30runtime: fix arm build, slightly.Russ Cox1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/842042
2010-03-30go/printer: follow-up on CL 802043Robert Griesemer5-23/+87
- more test cases - comment fixes - minor unrelated changes as part of investigation of issue 702 R=rsc CC=golang-dev http://codereview.appspot.com/860041
2010-03-30time: do not segment time strings by character class.Russ Cox3-173/+212
instead use pure substring matching to find template values. this makes stdZulu unnecessary and allows formats like "20060102 030405" (used in some internet protocols). this makes Parse not handle years < 0000 or > 9999 anymore. that seems like an okay price to pay, trading hypothetical functionality for real functionality. also changed the comments on the Time struct to use the same reference date as the format and parse routines. R=r CC=golang-dev http://codereview.appspot.com/833045
2010-03-30syscall: add IPV6 constantsRuss Cox6-1108/+1255
R=r CC=golang-dev http://codereview.appspot.com/848041
2010-03-30single argument panic on non-darwin and in commentsRuss Cox6-12/+12
R=r CC=golang-dev http://codereview.appspot.com/800042
2010-03-30Gofmt preserves newlines in multiline selector expressions.Risto Jaakko Saarelma4-6/+298
This is for making the fluent interface idiom usable with gofmt. R=gri CC=golang-dev http://codereview.appspot.com/802043 Committer: Robert Griesemer <gri@golang.org>
2010-03-30godoc: don't print package clause in -src command-line mode with filteringRobert Griesemer1-1/+12
R=rsc CC=golang-dev http://codereview.appspot.com/844041
2010-03-30gc: add panic and recover (still unimplemented in runtime)Russ Cox13-25/+173
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-30simplify various code using new map index ruleRuss Cox26-183/+94
R=r CC=golang-dev http://codereview.appspot.com/833044
2010-03-30make: use actual dependency for installRuss Cox1-1/+1
otherwise "make install" runs cp unconditionally R=r CC=golang-dev http://codereview.appspot.com/802044
2010-03-30godefs: fix handling of negative constantsRuss Cox1-2/+8
R=r CC=golang-dev http://codereview.appspot.com/849041
2010-03-30single argument panicRuss Cox25-86/+75
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041