1. 24 May, 2016 3 commits
    • Russ Cox's avatar
      cmd/go: fix //go:binary-only-package check · 8e724e7b
      Russ Cox authored
      The use of a prefix check was too liberal.
      Noted in review after submit.
      
      Change-Id: I4fe1df660997efd225609e818040b8392fab79f0
      Reviewed-on: https://go-review.googlesource.com/23375
      Run-TryBot: Russ Cox <rsc@golang.org>
      Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      8e724e7b
    • Russ Cox's avatar
      encoding/json: additional tests and fixes for []typedByte encoding/decoding · 12610236
      Russ Cox authored
      CL 19725 changed the encoding of []typedByte to look for
      typedByte.MarshalJSON and typedByte.MarshalText.
      Previously it was handled like []byte, producing a base64 encoding of the underlying byte data.
      
      CL 19725 forgot to look for (*typedByte).MarshalJSON and (*typedByte).MarshalText,
      as the marshaling of other slices would. Add test and fix for those.
      
      This CL also adds tests that the decoder can handle both the old and new encodings.
      (This was true even in Go 1.6, which is the only reason we can consider this
      not an incompatible change.)
      
      For #13783.
      
      Change-Id: I7cab8b6c0154a7f2d09335b7fa23173bcf856c37
      Reviewed-on: https://go-review.googlesource.com/23294Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
      12610236
    • Russ Cox's avatar
      math/big: write t*10 to multiply t by 10 · ab441477
      Russ Cox authored
      The compiler has caught up.
      In fact the compiler is ahead; it knows about a magic multiply-by-5 instruction:
      
      	// compute '0' + byte(r - t*10) in AX
      	MOVQ	t, AX
      	LEAQ	(AX)(AX*4), AX
      	SHLQ	$1, AX
      	MOVQ	r, CX
      	SUBQ	AX, CX
      	LEAL	48(CX), AX
      
      For comparison, the shifty version compiles to:
      
      	// compute '0' + byte(r - t*10) in AX
      	MOVQ	t, AX
      	MOVQ	AX, CX
      	SHLQ	$3, AX
      	MOVQ	r, DX
      	SUBQ	AX, DX
      	SUBQ	CX, DX
      	SUBQ	CX, DX
      	LEAL	48(DX), AX
      
      Fixes #2671.
      
      Change-Id: Ifbf23dbfeb19c0bb020fa44eb2f025943969fb6b
      Reviewed-on: https://go-review.googlesource.com/23372
      Run-TryBot: Russ Cox <rsc@golang.org>
      Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      ab441477
  2. 23 May, 2016 3 commits
  3. 22 May, 2016 1 commit
  4. 21 May, 2016 3 commits
    • Brad Fitzpatrick's avatar
      A+C: automated update (subrepos) · 1f8d2768
      Brad Fitzpatrick authored
      Add Abe Haskins (individual CLA)
      Add Ahmy Yulrizka (individual CLA)
      Add Akihiro Suda (individual CLA)
      Add Alex Vaghin (corporate CLA for Google Inc.)
      Add Arlo Breault (individual CLA)
      Add Audrey Lim (individual CLA)
      Add Benjamin Wester (corporate CLA for Square, Inc.)
      Add Bryan Chan (corporate CLA for IBM)
      Add Christy Perez (corporate CLA for IBM)
      Add Colin Edwards (individual CLA)
      Add David Brophy (individual CLA)
      Add David Sansome (individual CLA)
      Add Diwaker Gupta (individual CLA)
      Add Doug Anderson (corporate CLA for Google Inc.)
      Add Dustin Carlino (corporate CLA for Google Inc.)
      Add Ernest Chiang (individual CLA)
      Add Ethan Burns (corporate CLA for Google Inc.)
      Add Gary Elliott (corporate CLA for Google Inc.)
      Add Hallgrimur Gunnarsson (corporate CLA for Google Inc.)
      Add Hironao OTSUBO (individual CLA)
      Add Holden Huang (individual CLA)
      Add Idora Shinatose (individual CLA)
      Add Irieda Noboru (individual CLA)
      Add Jeff Craig (corporate CLA for Google Inc.)
      Add Joe Henke (individual CLA)
      Add John Schnake (individual CLA)
      Add Jonathan Amsterdam (corporate CLA for Google Inc.)
      Add Kenji Kaneda (individual CLA)
      Add Kenneth Shaw (individual CLA)
      Add Mark Severson (individual CLA)
      Add Martin Garton (individual CLA)
      Add Mathias Leppich (individual CLA)
      Add Maxwell Krohn (individual CLA)
      Add Niall Sheridan (individual CLA)
      Add Nick Patavalis (individual CLA)
      Add Nick Petroni (individual CLA)
      Add Omar Jarjur (corporate CLA for Google Inc.)
      Add Özgür Kesim (individual CLA)
      Add Peter Gonda (corporate CLA for Google Inc.)
      Add Pierre Durand (individual CLA)
      Add Quentin Smith (corporate CLA for Google Inc.)
      Add Ricardo Padilha (individual CLA)
      Add Riku Voipio (corporate CLA for Linaro Limited)
      Add Roland Shoemaker (individual CLA)
      Add Sam Hug (individual CLA)
      Add Sam Whited (individual CLA)
      Add Sami Commerot (corporate CLA for Google Inc.)
      Add Scott Mansfield (corporate CLA for Netflix, Inc.)
      Add Sean Harger (corporate CLA for Google Inc.)
      Add Simon Jefford (individual CLA)
      Add Sridhar Venkatakrishnan (individual CLA)
      Add Tim Swast (corporate CLA for Google Inc.)
      Add Timothy Studd (individual CLA)
      Add Tipp Moseley (corporate CLA for Google Inc.)
      Add Toby Burress (corporate CLA for Google Inc.)
      Add Tzu-Jung Lee (corporate CLA for Currant)
      Add Vadim Grek (individual CLA)
      Add Xudong Zhang (individual CLA)
      
      Updates #12042
      
      Change-Id: I4119a8829119a2b8a9abbea9f52ceebb04878764
      Reviewed-on: https://go-review.googlesource.com/23306Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
      1f8d2768
    • Brad Fitzpatrick's avatar
      net/http: update bundled http2 · def50f8e
      Brad Fitzpatrick authored
      Updates x/net/http2 to git rev 0c607074 for https://golang.org/cl/23311,
      "http2: prevent Server from sending status 100 header after anything else"
      
      New test is in the x/net/http2 package (not bundled to std).
      
      Fixes #14030
      
      Change-Id: Ifc6afa4a5fe35977135428f6d0e9f7c164767720
      Reviewed-on: https://go-review.googlesource.com/23312Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      def50f8e
    • Mikio Hara's avatar
      net: don't crash DNS flood test on darwin · 82ec4cd7
      Mikio Hara authored
      Also renames the test function to TestDNSFlood.
      
      Updates #15659.
      
      Change-Id: Ia562004c43bcc19c2fee9440321c27b591f85da5
      Reviewed-on: https://go-review.googlesource.com/23077Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      82ec4cd7
  5. 20 May, 2016 13 commits
  6. 19 May, 2016 16 commits
  7. 18 May, 2016 1 commit