- 16 Sep, 2013 3 commits
-
-
Andrew Gerrand authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/13721043
-
Rob Pike authored
Everything is done except compiler changes and additional platforms, if any. R=golang-dev, dominik.honnef, adg CC=golang-dev https://golang.org/cl/13484045
-
Rob Pike authored
Previously, fields of type chan or func caused an error. Now we just treat them like unexported fields and ignore them. This makes it easier to guarantee long-term compatibilty since a substructure from another package cannot break gob encoding by adding a func or chan field. Fixes #6071 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/13693043
-
- 15 Sep, 2013 4 commits
-
-
Russ Cox authored
The test 'gp == m->curg' is not valid on Windows, because the goroutine being profiled is not from the current m. TBR=golang-dev CC=golang-dev https://golang.org/cl/13718043
-
Russ Cox authored
Fixes #6369. R=dsymonds, r CC=golang-dev https://golang.org/cl/13708043
-
Russ Cox authored
Fixes #5626. R=golang-dev, dominik.honnef CC=golang-dev https://golang.org/cl/13702043
-
Rob Pike authored
Just an oversight they were missing. Fixes #6387 R=golang-dev, dominik.honnef, rsc CC=golang-dev https://golang.org/cl/13715043
-
- 14 Sep, 2013 1 commit
-
-
Rémy Oudompheng authored
Fake types describing the internal structure of hashmaps are generated for use by precise GC. Generating hash and eq functions for these fake types slows down the build and wastes space: the go tool binary size is 13MB instead of 12MB, and the package size on amd64 is 48.7MB instead of 45.3MB. R=golang-dev, daniel.morsing, r, khr, rsc, iant CC=golang-dev https://golang.org/cl/13698043
-
- 13 Sep, 2013 10 commits
-
-
Russ Cox authored
(StdinPipe was taken care of by CL 13329043.) Fixes #6008. R=golang-dev, iant CC=golang-dev https://golang.org/cl/13606046
-
Russ Cox authored
Because profiling signals can arrive at any time, we must handle the case where a profiling signal arrives halfway through a goroutine switch. Luckily, although there is much to think through, very little needs to change. Fixes #6000. Fixes #6015. R=golang-dev, dvyukov CC=golang-dev https://golang.org/cl/13421048
-
Russ Cox authored
Fixes #4876. R=golang-dev, iant CC=golang-dev https://golang.org/cl/13701044
-
Dave Cheney authored
Fixes #6355. zerrors_linux_{386,amd64,arm}.go were regenerated using mkerrors.sh but I opted to add the three TC.*FLUSH lines by hand to keep the diff smaller and avoid problems with the API checker. I'll check freebsd and darwin, could I ask for help with net/open bsd. R=mikioh.mikioh, jsing, minux.ma, bradfitz CC=golang-dev https://golang.org/cl/13660043
-
Russ Cox authored
Keith is too clever for me. R=ken2 CC=golang-dev, khr https://golang.org/cl/13272050
-
Jamie Wilkinson authored
goyacc: Fix debug printing of the lexed token's ID and name, and add whitespace in the 'stateX saw' message. R=golang-dev, r CC=golang-dev https://golang.org/cl/13352048
-
Rob Pike authored
R=golang-dev, dave, adg, dsymonds CC=golang-dev https://golang.org/cl/13692043
-
Rob Pike authored
It's too late to change this behavior: it breaks templates with minimized JavaScript. Makes me sad because this common error can never be caught: "{foo}}". Three cheers for compatibility. (Leave in a fix to a broken test.) R=golang-dev, dsymonds, rsc CC=golang-dev https://golang.org/cl/13689043
-
Russ Cox authored
This reverts CL 13261048. I have just learned that these are no longer supported on code.google.com (that is, it is impossible to create them), so there is little reason to add support in Go 1.2. Update #5408 R=golang-dev, dave, r CC=golang-dev https://golang.org/cl/13317046
-
Andrew Gerrand authored
Fixes #6356. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13333052
-
- 12 Sep, 2013 19 commits
-
-
Russ Cox authored
Fixes #6365. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13627046
-
Russ Cox authored
Bug #1: Issue 5406 identified an interesting case: defer iface.M() may end up calling a wrapper that copies an indirect receiver from the iface value and then calls the real M method. That's two calls down, not just one, and so recover() == nil always in the real M method, even during a panic. [For the purposes of this entire discussion, a wrapper's implementation is a function containing an ordinary call, not the optimized tail call form that is somtimes possible. The tail call does not create a second frame, so it is already handled correctly.] Fix this bug by introducing g->panicwrap, which counts the number of bytes on current stack segment that are due to wrapper calls that should not count against the recover check. All wrapper functions must now adjust g->panicwrap up on entry and back down on exit. This adds slightly to their expense; on the x86 it is a single instruction at entry and exit; on the ARM it is three. However, the alternative is to make a call to recover depend on being able to walk the stack, which I very much want to avoid. We have enough problems walking the stack for garbage collection and profiling. Also, if performance is critical in a specific case, it is already faster to use a pointer receiver and avoid this kind of wrapper entirely. Bug #2: The old code, which did not consider the possibility of two calls, already contained a check to see if the call had split its stack and so the panic-created segment was one behind the current segment. In the wrapper case, both of the two calls might split their stacks, so the panic-created segment can be two behind the current segment. Fix this by propagating the Stktop.panic flag forward during stack splits instead of looking backward during recover. Fixes #5406. R=golang-dev, iant CC=golang-dev https://golang.org/cl/13367052
-
Josh Bleecher Snyder authored
This is a follow-up to feedback from gri in https://golang.org/cl/12837044/. Most of the wording and naming improvements are lifted shamelessly from him. R=gri CC=golang-dev https://golang.org/cl/13670043
-
Nicholas Sullivan authored
The public key serialization from CreateCertificate is factored out to be used in MarshalPKIXPublicKey. Testcode with one P224 ECDSA keypair has been added. R=golang-dev, agl CC=agl, golang-dev https://golang.org/cl/13427044
-
Adam Langley authored
Generated by addca. R=golang-dev CC=golang-dev https://golang.org/cl/13678043
-
Han-Wen Nienhuys authored
Fixes #6306. R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/13474043
-
Brad Fitzpatrick authored
Fixes #4799 R=golang-dev, dave, rsc CC=golang-dev https://golang.org/cl/13457047
-
Rob Pike authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/13373053
-
Mikio Hara authored
Also fix trivial nits. R=golang-dev, r CC=golang-dev https://golang.org/cl/13532046
-
Rob Pike authored
It was simply a missing error case: when scanning plain text outside of an action, a right delimiter should be an error. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/13468045
-
Mikio Hara authored
This is in prepartion for fixing issue 6320. R=golang-dev, dave CC=golang-dev https://golang.org/cl/13611043
-
Mikio Hara authored
Reduces a number of trials but it still can detect memory leak when we make blunders in runtime-integarted network poller work, like just forgetting to call runtime_pollClose in code paths. Also disables the test on windows/386. R=alex.brainman, r CC=golang-dev https://golang.org/cl/13022046
-
Dave Cheney authored
Remove set but unused variable. R=rsc CC=golang-dev https://golang.org/cl/13490047
-
Russ Cox authored
Pull the stack split generation into its own function. This will make an upcoming change to fix recover easier to digest. R=ken2 CC=golang-dev https://golang.org/cl/13611044
-
Russ Cox authored
There is no reason to do this, and it's more work. ««« original CL description net: make channel-based semaphore depend on receive, not send R=r, dvyukov CC=golang-dev https://golang.org/cl/13348045 »»» R=golang-dev, r CC=golang-dev https://golang.org/cl/13632047
-
Russ Cox authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/13263052
-
Robert Griesemer authored
R=rsc, r, iant, ken CC=golang-dev https://golang.org/cl/10243046
-
Rob Pike authored
R=iant, minux.ma CC=golang-dev https://golang.org/cl/13669043
-
Andrew Gerrand authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/13261053
-
- 11 Sep, 2013 3 commits
-
-
Rob Pike authored
Also link it to the landing page for docs. R=golang-dev, adg CC=golang-dev https://golang.org/cl/13652045
-
Rémy Oudompheng authored
A new node type OSPTR is added to refer to the data pointer of strings and slices in a simple way during walk(). It will be useful for future work on simplification of slice arithmetic. benchmark old ns/op new ns/op delta BenchmarkCopy1Byte 9 8 -13.98% BenchmarkCopy2Byte 14 8 -40.49% BenchmarkCopy4Byte 13 8 -35.04% BenchmarkCopy8Byte 13 8 -37.10% BenchmarkCopy12Byte 14 12 -15.38% BenchmarkCopy16Byte 14 12 -17.24% BenchmarkCopy32Byte 19 14 -27.32% BenchmarkCopy128Byte 31 26 -15.29% BenchmarkCopy1024Byte 100 92 -7.50% BenchmarkCopy1String 10 7 -28.99% BenchmarkCopy2String 10 7 -28.06% BenchmarkCopy4String 10 8 -22.69% BenchmarkCopy8String 10 8 -23.30% BenchmarkCopy12String 11 11 -5.88% BenchmarkCopy16String 11 11 -5.08% BenchmarkCopy32String 15 14 -6.58% BenchmarkCopy128String 28 25 -10.60% BenchmarkCopy1024String 95 95 +0.53% R=golang-dev, bradfitz, cshapiro, dave, daniel.morsing, rsc, khr, khr CC=golang-dev https://golang.org/cl/9101048
-
Russ Cox authored
Simpler version of CL 13084043. R=ken2 CC=golang-dev https://golang.org/cl/13602045
-