]> Cypherpunks repositories - gostls13.git/commit
runtime: fix stack switch check in walltime/nanotime on linux/arm
authorTobias Klauser <tklauser@distanz.ch>
Tue, 6 Mar 2018 13:30:26 +0000 (14:30 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 6 Mar 2018 14:24:19 +0000 (14:24 +0000)
commit9745397e1d5e84258887995fc3af6d9d3a5b0409
treedb49a8e55c6537cb3faa43300f18b55d7da20083
parent85dcc709a8523877063b05c6806631c7f47e99ab
runtime: fix stack switch check in walltime/nanotime on linux/arm

CL 98095 got the check wrong. We should be testing
'getg() == getg().m.curg', not 'getg().m == getg().m.curg'.

Change-Id: I32f6238b00409b67afa8efe732513d542aec5bc7
Reviewed-on: https://go-review.googlesource.com/98855
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/sys_linux_arm.s