Skip to content

Commit

Permalink
crypto/sha1: disable crashing AVX2 optimizations for now
Browse files Browse the repository at this point in the history
Updates #15617

Change-Id: I2104776f8e789d987b4f2f7f08f2ebe979b747a1
Reviewed-on: https://go-review.googlesource.com/23001
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Minux Ma <minux@golang.org>
  • Loading branch information
bradfitz committed May 10, 2016
1 parent 9e96ad8 commit 78ff743
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/crypto/sha1/sha1block_amd64.go
Expand Up @@ -12,7 +12,9 @@ func blockAVX2(dig *digest, p []byte)
func blockAMD64(dig *digest, p []byte)
func checkAVX2() bool

var hasAVX2 = checkAVX2()
// TODO(TocarIP): fix AVX2 crash (golang.org/issue/15617) and
// then re-enable this:
var hasAVX2 = false // checkAVX2()

func block(dig *digest, p []byte) {
if hasAVX2 && len(p) >= 256 {
Expand Down

0 comments on commit 78ff743

Please sign in to comment.