]> Cypherpunks repositories - gostls13.git/commit
runtime: fix stack corruption in race mode
authorDmitry Vyukov <dvyukov@google.com>
Fri, 13 Feb 2015 14:14:48 +0000 (17:14 +0300)
committerDmitry Vyukov <dvyukov@google.com>
Fri, 13 Feb 2015 16:29:54 +0000 (16:29 +0000)
commitf59f9b85276b6f80b6e55ea747a5df64bb83ecce
tree19fd0166ff21e758615c9182182266547e9ac1c4
parent6731063e42e6c9831a19e1cc7b79658bd663ad9b
runtime: fix stack corruption in race mode

MOVQ RARG0, 0(SP) smashes exactly what was saved by PUSHQ R15.
This code managed to work somehow with the current race runtime,
but corrupts caller arguments with new race runtime that I am testing.

Change-Id: I9ffe8b5eee86451db36e99dbf4d11f320192e576
Reviewed-on: https://go-review.googlesource.com/4810
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/race_amd64.s