- 04 Feb, 2011 3 commits
-
-
Alex Brainman authored
Fixes #1004. Fixes #1460. R=mattn, r, niemeyer, rog, rsc CC=golang-dev https://golang.org/cl/4029053
-
Yasuhiro Matsumoto authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/4121057
-
Robert Griesemer authored
The value of the internal flag includeNonGoFile really is the value of the fulltextIndex flag. R=rsc CC=golang-dev https://golang.org/cl/4044052
-
- 03 Feb, 2011 23 commits
-
-
Rob Pike authored
ReadRune. (If you have a Reader but not a RuneReader, use bufio.) The matching code is a few percent slower but significantly cleaner. R=rsc CC=golang-dev https://golang.org/cl/4125046
-
Gustavo Niemeyer authored
As discussed in the mailing list, this adds a simple barrier implementation to the sync package which enables one or more goroutines to wait for a counter to go down to zero. R=rsc, rog, r CC=golang-dev https://golang.org/cl/3770045
-
Robert Griesemer authored
R=r, r2 CC=golang-dev https://golang.org/cl/4128055
-
Rob Pike authored
R=rsc, gri CC=golang-dev https://golang.org/cl/4130044
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/4001056
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/4128054
-
Dave Cheney authored
notes: * due to Issue 1466 the Msghdr struct for src/pkg/syscall/ztypes_darwin_386.go src/pkg/syscall/ztypes_darwin_amd64.go had to be edited after the godefs generation. * ztypes_*.go files for linux, freebsd and darwin have been prepared on the correct host OS and ARCH. While the total increase is a dozen lines per file the diff is larger due to a change to godefs, http://code.google.com/p/go/source/detail?r=c79e30afe9c8 while has altered the names of Pad members which causes gofmt to realign the affected structs R=rsc, mikioh CC=golang-dev https://golang.org/cl/4119053
-
Russ Cox authored
R=adg, gri CC=golang-dev https://golang.org/cl/4126055
-
Robert Griesemer authored
This change makes it legal to pass a struct value as receiver outside the package declaring the struct even if the respective struct type has non-exported fields. This is a backwards-compatible language change motivated by the fact that it is already possible to circumvent the assignment restriction when calling methods through interfaces (see issue 1402). R=r, rsc, iant, ken2 CC=golang-dev https://golang.org/cl/3926044
-
Gustavo Niemeyer authored
This enables #cgo directives to contain a os/arch specification which restricts the definition of the given option to matching systems. For example: #cgo amd64 CFLAGS: -DAMD64=1 #cgo linux CFLAGS: -DLINUX=1 #cgo linux/amd64 CFLAGS: -DLINUX_ON_AMD64=1 R=rsc CC=golang-dev https://golang.org/cl/4121048
-
Russ Cox authored
The object files begin with a header that is $GOARCH on a line by itself. This CL changes that header to go object $GOOS $GOARCH release.2011-01-01 4567+ where the final two fields are the most recent release tag and the current hg version number. All objects imported into a Go compilation or linked into an executable must have the same header line, and that header line must match the compiler and linker versions. The effect of this will be that if you update and run all.bash and then try to link in objects compiled with an earlier version of the compiler (or invoke the wrong version of the compiler), you will get an error showing the different headers instead of perhaps silent incompatibility. Normal usage with all.bash should be unaffected, because all.bash deletes all the object files in $GOROOT/pkg/$GOOS_$GOARCH and cleans all intermediate object files before starting. This change is intended to diagnose stale objects arising when users maintaining alternate installation directories forget to rebuild some of their files after updating. It should help make the adoption of $GOPATH (CL 3780043) less error-prone. R=ken2, r CC=golang-dev https://golang.org/cl/4023063
-
Russ Cox authored
Prior to this CL, there were two requirements about the package name main. 1. The package that sits at the root of the import graph (the one where program execution begins) must be named main. 2. No other package in the program can be named main. This CL only removes requirement #2, which can be done without changing any other Go documentation. The new wording and formatting is such that removing requirement #1 can be done by deleting a single line, but making that change is explicitly outside the scope of this CL, because it would require changes to other documentation at the same time. R=gri, r, gri1 CC=golang-dev https://golang.org/cl/4126053
-
Adam Langley authored
Since nobody suggested major changes to the higher level API, I'm splitting up the lower level code for review. This is the first of the changes for the packet reading/writing code. It deliberately doesn't include a Makefile because the package is incomplete. R=bradfitzgo CC=golang-dev https://golang.org/cl/4080051
-
Adam Langley authored
* Don't require lines to be full. * Don't forget to flush the line buffer. * Update the test so that it doesn't happen to include only full lines in order to test the above. * Always write the line after the header as GNUPG expects it. R=bradfitzgo CC=golang-dev https://golang.org/cl/4124043
-
Adam Langley authored
OpenPGP changed its OCFB mode for more modern packets (for example, the MDC symmetrically encrypted packet). This change adds a bool to determine which mode is used. R=bradfitzgo, r, rsc CC=golang-dev https://golang.org/cl/4126041
-
Christopher Nielsen authored
Fixes #1413. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4007041
-
Russ Cox authored
R=golang-dev, r2 CC=golang-dev https://golang.org/cl/3989061
-
Russ Cox authored
GC is still single-threaded. Multiple threads will happen in another CL. Garbage collection pauses are typically about half as long as they were before this CL. R=brainman, iant, r CC=golang-dev https://golang.org/cl/3975046
-
Russ Cox authored
Shot in the dark. TBR=r CC=golang-dev https://golang.org/cl/4126054
-
Yasuhiro Matsumoto authored
R=rsc CC=golang-dev https://golang.org/cl/3989059
-
Gustavo Niemeyer authored
The timestamp file is being created before cgo runs, which means errors will not prevent it from being created and thus will cause the build to break by rendering the rule up-to-date when it isn't. R=rsc CC=golang-dev https://golang.org/cl/4001049
-
Eoghan Sherry authored
Fixes #1463. R=rsc CC=golang-dev https://golang.org/cl/4079060
-
Hector Chu authored
so that spawned processes avoid inheriting pipes. Implement CloseOnExec. Make file and pipe handles inheritable. R=rsc, brainman, vincent.vanackere CC=golang-dev https://golang.org/cl/4126047
-
- 02 Feb, 2011 14 commits
-
-
Robert Griesemer authored
Newer versions of Mercurial require the configuration of Certification Authorities. R=rsc CC=golang-dev https://golang.org/cl/4128052
-
Russ Cox authored
Fixes #1452. R=r CC=golang-dev https://golang.org/cl/4023060
-
Russ Cox authored
Affects receive using := when new variable escapes to heap. Fixes #1468. R=ken2 CC=golang-dev https://golang.org/cl/4119052
-
Robert Griesemer authored
readRuner -> runeReader unreadRuner -> runeUnreader R=r, rsc CC=golang-dev https://golang.org/cl/4000054
-
Russ Cox authored
Follow morestack, so that crashes during a stack split give complete traces. Also mark stack segment boundaries as an aid to debugging. Correct various line number bugs with yet another attempt at interpreting the pc/ln table. This one has a chance at being correct, because I based it on reading src/cmd/ld/lib.c instead of on reading the documentation. Fixes #1138. Fixes #1430. Fixes #1461. throw: runtime: split stack overflow runtime.throw+0x3e /home/rsc/g/go2/src/pkg/runtime/runtime.c:78 runtime.throw(0x81880af, 0xf75c8b18) runtime.newstack+0xad /home/rsc/g/go2/src/pkg/runtime/proc.c:728 runtime.newstack() runtime.morestack+0x4f /home/rsc/g/go2/src/pkg/runtime/386/asm.s:184 runtime.morestack() ----- morestack called from stack: ----- runtime.new+0x1a /home/rsc/g/go2/src/pkg/runtime/malloc.c:288 runtime.new(0x1, 0x0, 0x0) gongo.makeBoard+0x33 /tmp/Gongo/gongo_robot_test.go:344 gongo.makeBoard(0x809d238, 0x1, 0xf76092c8, 0x1) ----- stack segment boundary ----- gongo.checkEasyScore+0xcc /tmp/Gongo/gongo_robot_test.go:287 gongo.checkEasyScore(0xf764b710, 0x0, 0x809d238, 0x1) gongo.TestEasyScore+0x8c /tmp/Gongo/gongo_robot_test.go:255 gongo.TestEasyScore(0xf764b710, 0x818a990) testing.tRunner+0x2f /home/rsc/g/go2/src/pkg/testing/testing.go:132 testing.tRunner(0xf764b710, 0xf763b5dc, 0x0) runtime.goexit /home/rsc/g/go2/src/pkg/runtime/proc.c:149 runtime.goexit() R=ken2, r CC=golang-dev https://golang.org/cl/4000053
-
Robert Griesemer authored
ReadByter -> ByteReader ReadRuner -> RuneReader R=r, r2, rsc CC=golang-dev https://golang.org/cl/4023062
-
Russ Cox authored
Include repository URL in initial mail. Record repository and base revision in patch description. R=r CC=golang-dev https://golang.org/cl/4126052
-
Rob Pike authored
R=rsc, rog, r2 CC=golang-dev https://golang.org/cl/4128049
-
Russ Cox authored
If the same directory was used for multiple builds, it was possible for a stale version.go to contain the wrong definitions for $GOOS and $GOARCH, because they can change even if the hg version does not. Split into multiple files to fix. R=r, r2 CC=golang-dev https://golang.org/cl/4124050
-
Robert Griesemer authored
Fixes #1467. R=r, r2 CC=golang-dev https://golang.org/cl/3981054
-
Rob Pike authored
no semantic change. R=rsc CC=golang-dev https://golang.org/cl/4128048
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/4073051
-
Rob Pike authored
Put it in the same package as ReadByter. There is no implementation here for either interface. R=rsc CC=golang-dev https://golang.org/cl/4121051
-
Rob Pike authored
The first two "Literal" tests were silly. Also fix a naming typo in a couple of tests. R=rsc CC=golang-dev https://golang.org/cl/4127045
-