1. 20 Dec, 2013 9 commits
  2. 19 Dec, 2013 18 commits
  3. 18 Dec, 2013 13 commits
    • David du Colombier's avatar
      syscall: disallow slashes in file names on Plan 9 · 67460650
      David du Colombier authored
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/43480050
      67460650
    • Brad Fitzpatrick's avatar
      net/http: use sync.Pool · 93e4a9d8
      Brad Fitzpatrick authored
      Update #4720
      
      R=golang-dev, iant
      CC=golang-dev
      https://golang.org/cl/44080043
      93e4a9d8
    • Brad Fitzpatrick's avatar
      encoding/json: use sync.Pool · 46b4ed2c
      Brad Fitzpatrick authored
      Benchmark is within the noise. I had to run this a dozen times
      each before & after (on wall power, without a browser running)
      before I could get halfway consistent numbers, and even then
      they jumped all over the place, with the new one sometimes
      being better. But these are the best of a dozen each.
      
      Slowdown is expected anyway, since I imagine channels are
      optimized more.
      
      benchmark                 old ns/op    new ns/op    delta
      BenchmarkCodeEncoder       26556987     27291072   +2.76%
      BenchmarkEncoderEncode         1069         1071   +0.19%
      
      benchmark                  old MB/s     new MB/s  speedup
      BenchmarkCodeEncoder          73.07        71.10    0.97x
      
      benchmark                old allocs   new allocs    delta
      BenchmarkEncoderEncode            2            2    0.00%
      
      benchmark                 old bytes    new bytes    delta
      BenchmarkEncoderEncode          221          221    0.00%
      
      Update #4720
      
      R=golang-dev, iant
      CC=golang-dev
      https://golang.org/cl/37720047
      46b4ed2c
    • Dave Cheney's avatar
      liblink, cmd/gc: resolve several shift warnings · 3f6dbfc4
      Dave Cheney authored
      Address several warnings generated by clang -fsanitize=undefined
      
      R=golang-dev, iant
      CC=golang-dev
      https://golang.org/cl/43050043
      3f6dbfc4
    • Shenghou Ma's avatar
      cmd/go: show testflag help for "go test -h" · 8606b976
      Shenghou Ma authored
      Fixes #6576.
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/14502065
      8606b976
    • Mikio Hara's avatar
      net: add test cases for the both of netgo, cgo DNS lookups · 2b3ad827
      Mikio Hara authored
      Update #4078
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/14638043
      2b3ad827
    • Jakob Borg's avatar
      encoding/asn1: Fix parsing of non-printable strings in · 2b693b7c
      Jakob Borg authored
      sequences.
      
      Use the same criteria for when to modify the tag type when
      parsing a string in a sequence as when parsing a bare string
      field.
      
      Fixes #6726.
      
      R=golang-dev, bradfitz, gobot, agl
      CC=golang-dev
      https://golang.org/cl/22460043
      2b693b7c
    • Jeff R. Allen's avatar
      math/rand: Float32/64 must only return values in [0,1) · 17dc712c
      Jeff R. Allen authored
      Float32 and Float64 are now both created by taking the ratio
      of two integers which are chosen to fit entirely into the
      precision of the desired float type. The previous code
      could cast a Float64 with more than 23 bits of ".99999"
      into a Float32 of 1.0, which is not in [0,1).
      
      Float32 went from 15 to 21 ns/op (but is now correct).
      
      Fixes #6721.
      
      R=golang-dev, iant, rsc
      CC=golang-dev
      https://golang.org/cl/22730043
      17dc712c
    • ChaiShushan's avatar
      cmd/yacc: gofmt y.go · 3d2c4df9
      ChaiShushan authored
      R=golang-dev, adg, rsc
      CC=golang-dev
      https://golang.org/cl/36950043
      3d2c4df9
    • Nigel Tao's avatar
      image/gif: respect local color table transparency. · ff6b9223
      Nigel Tao authored
      Fixes #6441.
      
      R=r
      CC=andybons, golang-dev
      https://golang.org/cl/13829043
      ff6b9223
    • David du Colombier's avatar
      cmd/6g, cmd/gc, cmd/ld: fix Plan 9 amd64 warnings · 96072557
      David du Colombier authored
      warning: src/cmd/6g/reg.c:671 format mismatch d VLONG, arg 4
      warning: src/cmd/gc/pgen.c:230 set and not used: oldstksize
      warning: src/cmd/gc/plive.c:877 format mismatch lx UVLONG, arg 2
      warning: src/cmd/gc/walk.c:2878 set and not used: cbv
      warning: src/cmd/gc/walk.c:2885 set and not used: hbv
      warning: src/cmd/ld/data.c:198 format mismatch s IND FUNC(IND CHAR) INT, arg 2
      warning: src/cmd/ld/data.c:230 format mismatch s IND FUNC(IND CHAR) INT, arg 2
      warning: src/cmd/ld/dwarf.c:1517 set and not used: pc
      warning: src/cmd/ld/elf.c:1507 format mismatch d VLONG, arg 2
      warning: src/cmd/ld/ldmacho.c:509 set and not used: dsymtab
      
      R=golang-dev, gobot, rsc
      CC=golang-dev
      https://golang.org/cl/36740045
      96072557
    • David du Colombier's avatar
      libmach, cmd/8l: fix Plan 9 warnings · ef0100c7
      David du Colombier authored
      warning: src/libmach/sym.c:1861 non-interruptable temporary
      warning: src/cmd/8l/../ld/pcln.c:29 set and not used: p
      
      R=golang-dev, gobot, rsc
      CC=golang-dev
      https://golang.org/cl/40500043
      ef0100c7
    • David du Colombier's avatar
      liblink: fix Plan 9 warnings · 6e975130
      David du Colombier authored
      warning: src/liblink/asm5.c:485 non-interruptable temporary
      warning: src/liblink/asm5.c:565 set and not used: c
      warning: src/liblink/asm5.c:622 format mismatch ux VLONG, arg 2
      warning: src/liblink/asm5.c:1218 overspecified class: asmout GLOBL STATIC
      warning: src/liblink/asm5.c:2088 overspecified class: oprrr GLOBL STATIC
      warning: src/liblink/asm5.c:2202 overspecified class: opbra GLOBL STATIC
      warning: src/liblink/asm5.c:2237 overspecified class: olr GLOBL STATIC
      warning: src/liblink/asm5.c:2266 overspecified class: olhr GLOBL STATIC
      warning: src/liblink/asm5.c:2291 overspecified class: osr GLOBL STATIC
      warning: src/liblink/asm5.c:2302 overspecified class: oshr GLOBL STATIC
      warning: src/liblink/asm5.c:2312 overspecified class: osrr GLOBL STATIC
      warning: src/liblink/asm5.c:2319 overspecified class: oshrr GLOBL STATIC
      warning: src/liblink/asm5.c:2325 overspecified class: olrr GLOBL STATIC
      warning: src/liblink/asm5.c:2332 overspecified class: olhrr GLOBL STATIC
      warning: src/liblink/asm5.c:2338 overspecified class: ofsr GLOBL STATIC
      warning: src/liblink/asm5.c:2375 overspecified class: omvl GLOBL STATIC
      warning: src/liblink/asm8.c:1261 format mismatch d VLONG, arg 3
      warning: src/liblink/asm8.c:1274 format mismatch +d VLONG, arg 5
      warning: src/liblink/list5.c:153 format mismatch d VLONG, arg 3
      warning: src/liblink/list5.c:310 format mismatch d VLONG, arg 3
      warning: src/liblink/obj6.c:665 set and not used: q
      warning: src/liblink/pcln.c:32 set and not used: p
      
      R=golang-dev, jas, gobot, rsc
      CC=golang-dev
      https://golang.org/cl/40370043
      6e975130