1. 28 Sep, 2016 3 commits
    • Ian Lance Taylor's avatar
      runtime: minor simplifications to signal code · eb268cb3
      Ian Lance Taylor authored
      Change setsig, setsigstack, getsig, raise, raiseproc to take uint32 for
      signal number parameter, as that is the type mostly used for signal
      numbers.  Same for dieFromSignal, sigInstallGoHandler, raisebadsignal.
      
      Remove setsig restart parameter, as it is always either true or
      irrelevant.
      
      Don't check the handler in setsigstack, as the only caller does that
      anyhow.
      
      Don't bother to convert the handler from sigtramp to sighandler in
      getsig, as it will never be called when the handler is sigtramp or
      sighandler.
      
      Don't check the return value from rt_sigaction in the GNU/Linux version
      of setsigstack; no other setsigstack checks it, and it never fails.
      
      Change-Id: I6bbd677e048a77eddf974dd3d017bc3c560fbd48
      Reviewed-on: https://go-review.googlesource.com/29953
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      eb268cb3
    • Andrew Gerrand's avatar
      testing: add Name method to *T and *B · 594cddd6
      Andrew Gerrand authored
      Fixes #17231
      
      Change-Id: I0d6007ab504f2277cb6affc9e2050157a6ad4d5e
      Reviewed-on: https://go-review.googlesource.com/29970Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: 's avatarMinux Ma <minux@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      594cddd6
    • Alex Brainman's avatar
      runtime: use RtlGenRandom instead of CryptGenRandom · db82cf4e
      Alex Brainman authored
      This change replaces the use of CryptGenRandom with RtlGenRandom in
      Windows to generate cryptographically random numbers during process
      startup. RtlGenRandom uses the same RNG as CryptGenRandom, but it has many
      fewer DLL dependencies and so does not affect process startup time as
      much.
      
      This makes running simple Go program on my computers faster.
      
      Windows XP:
      benchmark                      old ns/op     new ns/op     delta
      BenchmarkRunningGoProgram-2     47408573      10784148      -77.25%
      
      Windows 7 (VM):
      benchmark                    old ns/op     new ns/op     delta
      BenchmarkRunningGoProgram     16260390      12792150      -21.33%
      
      Windows 7:
      benchmark                      old ns/op     new ns/op     delta
      BenchmarkRunningGoProgram-2     13600778      10050574      -26.10%
      
      Fixes #15589
      
      Change-Id: I2816239a2056e3d4a6dcd86a6fa2bb619c6008fe
      Reviewed-on: https://go-review.googlesource.com/29700Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      db82cf4e
  2. 27 Sep, 2016 21 commits
  3. 26 Sep, 2016 16 commits