]> Cypherpunks repositories - gostls13.git/commit
runtime/internal/atomic: crash on unaligned 64-bit ops on 32-bit MIPS
authorCherry Zhang <cherryyz@google.com>
Mon, 21 Nov 2016 23:23:12 +0000 (18:23 -0500)
committerCherry Zhang <cherryyz@google.com>
Tue, 22 Nov 2016 02:05:07 +0000 (02:05 +0000)
commit526b2f85ce8e4b1b16f3122e0a5700c04b6de199
treeb59a50367ecd6b3fbe9c4b8d6e21c1da7f7ddaa8
parent67ce6af4567e6edb8b246494f7faa511485666ac
runtime/internal/atomic: crash on unaligned 64-bit ops on 32-bit MIPS

This check was originally implemented by Vladimir in
https://go-review.googlesource.com/c/31489/1/src/runtime/internal/atomic/atomic_mipsx.go#30
but removed due to my comment (Sorry!). This CL adds it back.

Fixes #17786.

Change-Id: I7ff4c2539fc9e2afd8199964b587a8ccf093b896
Reviewed-on: https://go-review.googlesource.com/33431
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/internal/atomic/atomic_mipsx.go
src/runtime/internal/atomic/atomic_test.go
src/sync/atomic/atomic_test.go