]> Cypherpunks repositories - gostls13.git/commit
runtime: fix nanotime for macOS Sierra, again.
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 2 Aug 2016 04:54:40 +0000 (21:54 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 2 Aug 2016 20:17:50 +0000 (20:17 +0000)
commit2da5633eb9091608047881953f75b489a3134cdc
tree3863cb423abe5b9760ebad0553888a1333d2ab19
parent6317c213c953d0879fe88593b4372f03d25f369b
runtime: fix nanotime for macOS Sierra, again.

macOS Sierra beta4 changed the kernel interface for getting time.
DX now optionally points to an address for additional info.
Set it to zero to avoid corrupting memory.

Fixes #16570

Change-Id: I9f537e552682045325cdbb68b7d0b4ddafade14a
Reviewed-on: https://go-review.googlesource.com/25400
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Quentin Smith <quentin@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/sys_darwin_386.s
src/runtime/sys_darwin_amd64.s