aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-11-05 00:10:31 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-11-04 23:56:29 +0000
commit0e5f287fde7b2cf11c8cffb7839f970a8f3e2f9b (patch)
tree5a3f8cf3b625dda42b6304c1f0c060366c6ac3a1 /src/runtime/stack.go
parent256a8fc6ef297f2a2cec0cb7c918f61706b6f9a3 (diff)
downloadgo-0e5f287fde7b2cf11c8cffb7839f970a8f3e2f9b.tar.xz
runtime: use correct constant when computing nsec remainder
A code comment on amd64 for windows and plan9 contained a snippet for splitting apart the sec and nsec components of a unix timestamp, with produced assembly below, which was then cleaned up by hand. When arm64 was ported, that code snippet in the comment went through the compiler to produce some code that was then pasted and cleaned up. Unfortunately, the comment had a typo in it, containing 8 zeros instead of 9. This resulted in the constant used in the assembly being wrong, spotted by @bufflig's eagle eyes. So, this commit fixes the comment on all three platforms, and the assembly on windows/arm64. Fixes #48072. Change-Id: I786fe89147328b0d25544f52c927ddfdb9f6f1cf Reviewed-on: https://go-review.googlesource.com/c/go/+/361474 Trust: Jason A. Donenfeld <Jason@zx2c4.com> Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com> Reviewed-by: Patrik Nyblom <pnyb@google.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/runtime/stack.go')
0 files changed, 0 insertions, 0 deletions