1. 24 Feb, 2017 8 commits
  2. 23 Feb, 2017 8 commits
  3. 22 Feb, 2017 15 commits
  4. 21 Feb, 2017 9 commits
    • Kevin Burke's avatar
      doc: use appropriate type to describe return value · 7603aa79
      Kevin Burke authored
      Fixes #19223.
      
      Change-Id: I4cc8e81559a1313e1477ee36902e1b653155a888
      Reviewed-on: https://go-review.googlesource.com/37374Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      Reviewed-by: default avatarRob Pike <r@golang.org>
      7603aa79
    • Cherry Zhang's avatar
      cmd/compile: do not fold offset into load/store for args on ARM64 · 6464e5dc
      Cherry Zhang authored
      Args may be not at 8-byte aligned offset to SP. When the stack
      frame is large, folding the offset of args may cause large
      unaligned offsets that does not fit in a machine instruction on
      ARM64. Therefore disable folding offsets for args.
      
      This has small performance impact (see below). A better fix would
      be letting the assembler backend fix up the offset by loading it
      into a register if it doesn't fit into an instruction. And the
      compiler can simply generate large load/stores with offset. Since
      in most of the cases the offset is aligned or the stack frame is
      small, it can fit in an instruction and no fixup is needed. But
      this is too complicated for Go 1.8.
      
      name                     old time/op    new time/op    delta
      BinaryTree17-8              8.30s ± 0%     8.31s ± 0%    ~     (p=0.579 n=10+10)
      Fannkuch11-8                6.14s ± 0%     6.18s ± 0%  +0.53%  (p=0.000 n=9+10)
      FmtFprintfEmpty-8           117ns ± 0%     117ns ± 0%    ~     (all equal)
      FmtFprintfString-8          196ns ± 0%     197ns ± 0%  +0.72%  (p=0.000 n=10+10)
      FmtFprintfInt-8             204ns ± 0%     205ns ± 0%  +0.49%  (p=0.000 n=9+10)
      FmtFprintfIntInt-8          302ns ± 0%     307ns ± 1%  +1.46%  (p=0.000 n=10+10)
      FmtFprintfPrefixedInt-8     329ns ± 2%     326ns ± 0%    ~     (p=0.083 n=10+10)
      FmtFprintfFloat-8           540ns ± 0%     542ns ± 0%  +0.46%  (p=0.000 n=8+7)
      FmtManyArgs-8              1.20µs ± 1%    1.19µs ± 1%  -1.02%  (p=0.000 n=10+10)
      GobDecode-8                17.3ms ± 1%    17.8ms ± 0%  +2.75%  (p=0.000 n=10+7)
      GobEncode-8                15.3ms ± 1%    15.4ms ± 0%  +0.57%  (p=0.004 n=9+10)
      Gzip-8                      789ms ± 0%     803ms ± 0%  +1.78%  (p=0.000 n=9+10)
      Gunzip-8                    128ms ± 0%     130ms ± 0%  +1.73%  (p=0.000 n=10+9)
      HTTPClientServer-8          202µs ± 6%     201µs ±10%    ~     (p=0.739 n=10+10)
      JSONEncode-8               42.0ms ± 0%    42.1ms ± 0%  +0.19%  (p=0.028 n=10+9)
      JSONDecode-8                159ms ± 0%     161ms ± 0%  +1.05%  (p=0.000 n=9+10)
      Mandelbrot200-8            10.1ms ± 0%    10.1ms ± 0%  -0.07%  (p=0.000 n=10+9)
      GoParse-8                  8.46ms ± 1%    8.61ms ± 1%  +1.77%  (p=0.000 n=10+10)
      RegexpMatchEasy0_32-8       227ns ± 1%     226ns ± 0%  -0.35%  (p=0.001 n=10+9)
      RegexpMatchEasy0_1K-8      1.63µs ± 0%    1.63µs ± 0%  -0.13%  (p=0.000 n=10+9)
      RegexpMatchEasy1_32-8       250ns ± 0%     249ns ± 0%  -0.40%  (p=0.001 n=8+9)
      RegexpMatchEasy1_1K-8      2.07µs ± 0%    2.08µs ± 0%  +0.05%  (p=0.027 n=9+9)
      RegexpMatchMedium_32-8      350ns ± 0%     350ns ± 0%    ~     (p=0.412 n=9+8)
      RegexpMatchMedium_1K-8      104µs ± 0%     104µs ± 0%  +0.31%  (p=0.000 n=10+7)
      RegexpMatchHard_32-8       5.82µs ± 0%    5.82µs ± 0%    ~     (p=0.937 n=9+9)
      RegexpMatchHard_1K-8        176µs ± 0%     176µs ± 0%  +0.03%  (p=0.000 n=9+8)
      Revcomp-8                   1.36s ± 1%     1.37s ± 1%    ~     (p=0.218 n=10+10)
      Template-8                  151ms ± 1%     156ms ± 1%  +3.21%  (p=0.000 n=10+10)
      TimeParse-8                 737ns ± 0%     758ns ± 2%  +2.74%  (p=0.000 n=10+10)
      TimeFormat-8                801ns ± 2%     789ns ± 1%  -1.51%  (p=0.000 n=10+10)
      [Geo mean]                  142µs          143µs       +0.50%
      
      Fixes #19137.
      
      Change-Id: Ib8a21ea98c0ffb2d282a586535b213cc163e1b67
      Reviewed-on: https://go-review.googlesource.com/37251
      Run-TryBot: Cherry Zhang <cherryyz@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarDavid Chase <drchase@google.com>
      6464e5dc
    • Robert Griesemer's avatar
      math/big: define Word as uint instead of uintptr · 17405803
      Robert Griesemer authored
      For compatibility with math/bits uint operations.
      
      When math/big was written originally, the Go compiler used 32bit
      int/uint values even on a 64bit machine. uintptr was the type that
      represented the machine register size. Now, the int/uint types are
      sized to the native machine register size, so they are the natural
      machine Word type.
      
      On most machines, the size of int/uint correspond to the size of
      uintptr. On platforms where uint and uintptr have different sizes,
      this change may lead to performance differences (e.g., amd64p32).
      
      Change-Id: Ief249c160b707b6441848f20041e32e9e9d8d8ca
      Reviewed-on: https://go-review.googlesource.com/37372
      Run-TryBot: Robert Griesemer <gri@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      17405803
    • Michael Munday's avatar
      cmd/compile: fix type of OffPtr generated by ODOTPTR · 10d718b9
      Michael Munday authored
      The type of the OffPtr should be consistent with the type of the
      following load. Before this CL it was typed as a pointer to the
      struct.
      
      Fixes #19164.
      
      Change-Id: Ibcdec4411c6f719702f76f8dba3cce8691bfbe0c
      Reviewed-on: https://go-review.googlesource.com/37254
      Run-TryBot: Michael Munday <munday@ca.ibm.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarDavid Chase <drchase@google.com>
      10d718b9
    • Alberto Donizetti's avatar
      fmt: add short note about %g precision · ea020ff3
      Alberto Donizetti authored
      Fixes #18772
      
      Change-Id: Ib5d9ffa0abd35b9d3ca83bac139aece0f3c9702d
      Reviewed-on: https://go-review.googlesource.com/37313Reviewed-by: default avatarRob Pike <r@golang.org>
      ea020ff3
    • Josh Bleecher Snyder's avatar
      syscall: fix linux/mipsx ret value FP offsets for Syscall9 · 689fa9cc
      Josh Bleecher Snyder authored
      Found by vet.
      
      Change-Id: Idf910405566816ddce6781c8e99f90b59f33d63c
      Reviewed-on: https://go-review.googlesource.com/37308
      Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
      689fa9cc
    • Josh Bleecher Snyder's avatar
      sync/atomic: fix mipsx frame sizes · 00e2524d
      Josh Bleecher Snyder authored
      Found by vet.
      
      Change-Id: Ied3089a2cc8757ae5377fb5fa05bbb385d26ad9c
      Reviewed-on: https://go-review.googlesource.com/37307
      Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      00e2524d
    • Josh Bleecher Snyder's avatar
      runtime: use standard linux/mipsx clone variable names · 4208fcdc
      Josh Bleecher Snyder authored
      Change-Id: I62118e197190af1d11a89921d5769101ce6d2257
      Reviewed-on: https://go-review.googlesource.com/37306
      Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      4208fcdc
    • Josh Bleecher Snyder's avatar
      crypto/aes: minor ppc64 assembly naming improvements · e51737ae
      Josh Bleecher Snyder authored
      doEncryptKeyAsm is tail-called from other assembly routines.
      Give it a proper prototype so that vet can check it.
      Adjust one assembly FP reference accordingly.
      
      Change-Id: I263fcb0191529214b16e6bd67330fadee492eef4
      Reviewed-on: https://go-review.googlesource.com/37305
      Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      e51737ae