1. 12 May, 2016 1 commit
  2. 11 May, 2016 17 commits
  3. 10 May, 2016 12 commits
  4. 09 May, 2016 10 commits
    • Tilman Dilo's avatar
      crypto/cipher: execute AES-GCM decryption example · 9af83462
      Tilman Dilo authored
      The decryption example for AES-GCM was not executed, hiding the fact
      that the provided ciphertext could not be authenticated.
      
      This commit adds the required output comment, replaces the ciphertext
      with a working example, and removes an unnecessary string conversion
      along the way.
      
      Change-Id: Ie6729ca76cf4a56c48b33fb3b39872105faa604b
      Reviewed-on: https://go-review.googlesource.com/22953Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      9af83462
    • Brad Fitzpatrick's avatar
      time: don't depend on the io package · d88261fb
      Brad Fitzpatrick authored
      The time package has never depended on the io package until
      a recent change during Go 1.7 to use the io.Seek* constants.
      
      The go/build dependency check didn't catch this because "time" was
      allowed to depend on meta package group "L0", which included "io".
      
      Adding the "io" package broke one of Dmitry's tools. The tool is
      fixable, but it's also not necessary for us to depend on "io" at all
      for some constants. Mirror the constants instead, and change
      deps_test.go to prevent an io dependency in the future.
      
      Change-Id: I74325228565279a74fa4a2f419643f5710e3e09f
      Reviewed-on: https://go-review.googlesource.com/22960
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      d88261fb
    • Hana Kim's avatar
      os: skip Lchown test on Android if symlink doesn't work · 561c9488
      Hana Kim authored
      After upgrading builder device (android/arm) to android 5.0.2,
      the test started failing. Running 'ln -s' from shell fails with
      permission error.
      
      Change-Id: I5b9e312806d58532b41ea3560ff079dabbc6424e
      Reviewed-on: https://go-review.googlesource.com/22962Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      561c9488
    • Austin Clements's avatar
      runtime: fix some out of date comments in bitmap code · 256a9670
      Austin Clements authored
      Change-Id: I4613aa6d62baba01686bbab10738a7de23daae30
      Reviewed-on: https://go-review.googlesource.com/22971Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
      256a9670
    • Joe Tsai's avatar
      compress: update documentation regarding footer verification · 7ba54d45
      Joe Tsai authored
      Address two documentation issues:
      1) Document that the GZIP and ZLIB footer is only verified when the
      reader has been fully consumed.
      2) The zlib reader is guaranteed to not read past the EOF if the
      input io.Reader is also a io.ByteReader. This functionality was
      documented in the flate and gzip packages but not on zlib.
      
      Fixes #14867
      
      Change-Id: I43d46b93e38f98a04901dc7d4f18ed2f9e09f6fb
      Reviewed-on: https://go-review.googlesource.com/21218Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      7ba54d45
    • Shenghou Ma's avatar
      cmd/compile: document -l in godoc · 5934523e
      Shenghou Ma authored
      Fixes #15607.
      
      Change-Id: I3e68ad00ebe72027d064238d4e77f1ad6a52f533
      Reviewed-on: https://go-review.googlesource.com/22940Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      5934523e
    • David Chase's avatar
      cmd/compile: correct sparseSet probes in regalloc to avoid index error · 3c090019
      David Chase authored
      In regalloc, a sparse map is preallocated for later use by
      spill-in-loop sinking.  However, variables (spills) are added
      during register allocation before spill sinking, and a map
      query involving any of these new variables will index out of
      bounds in the map.
      
      To fix:
      1) fix the queries to use s.orig[v.ID].ID instead, to ensure
      proper indexing.  Note that s.orig will be nil for values
      that are not eligible for spilling (like memory and flags).
      
      2) add a test.
      
      Fixes #15585.
      
      Change-Id: I8f2caa93b132a0f2a9161d2178320d5550583075
      Reviewed-on: https://go-review.googlesource.com/22911Reviewed-by: 's avatarKeith Randall <khr@golang.org>
      Run-TryBot: David Chase <drchase@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      3c090019
    • Mikhail Gusarov's avatar
      doc: update number of supported instruction sets · 149ac348
      Mikhail Gusarov authored
      Current  number was out-of-date since adding MIPS.
      
      Change-Id: I565342a92de3893b75cdfb76fa39f7fdf15672da
      Reviewed-on: https://go-review.googlesource.com/22952Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      149ac348
    • Russ Cox's avatar
      cmd/compile: add -linkobj flag to allow writing object file in two parts · feb6131b
      Russ Cox authored
      This flag is experimental and the semantics may change
      even after Go 1.7 is released. There are no changes to code
      not using the flag.
      
      The first part is for reading by future compiles.
      The second part is for reading by the final link step.
      Splitting the file this way allows distributed build systems
      to ship the compile-input part only to compile steps and
      the linker-input part only to linker steps.
      
      The first part is basically just the export data,
      and the second part is basically everything else.
      The overall files still have the same broad structure,
      so that existing tools will work with both halves.
      It's just that various pieces are empty in the two halves.
      
      This also copies the two bits of data the linker needed from
      export data into the object header proper, so that the linker
      doesn't need any export data at all. That eliminates a TODO
      that was left for switching to the binary export data.
      (Now the linker doesn't need to know about the switch.)
      
      The default is still to write out a combined output file.
      Nothing changes unless you pass -linkobj to the compiler.
      There is no support in the go command for -linkobj,
      since the go command doesn't copy objects around.
      The expectation is that other build systems (like bazel, say)
      might take advantage of this.
      
      The header adjustment and the option for the split output
      was intended as part of the zip archives, but the zip archives
      have been cut from Go 1.7. Doing this to the current archives
      both unblocks one step in the switch to binary export data
      and enables alternate build systems to experiment with the
      new flag using the Go 1.7 release.
      
      Change-Id: I8b6eab25b8a22b0a266ba0ac6d31e594f3d117f3
      Reviewed-on: https://go-review.googlesource.com/22500
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
      feb6131b
    • Dmitry Vyukov's avatar
      runtime/race: deflake test · aeecee8c
      Dmitry Vyukov authored
      The test sometimes fails on builders.
      The test uses sleeps to establish the necessary goroutine
      execution order. If sleeps undersleep/oversleep
      the race is still reported, but it can be reported when the
      main test goroutine returns. In such case test driver
      can't match the race with the test and reports failure.
      
      Wait for both test goroutines to ensure that the race
      is reported in the test scope.
      
      Fixes #15579
      
      Change-Id: I0b9bec0ebfb0c127d83eb5325a7fe19ef9545050
      Reviewed-on: https://go-review.googlesource.com/22951
      Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      aeecee8c