commit | 53b0e809130038a46f0a3d2870e3905f44ab888d | [log] [tgz] |
---|---|---|
author | Matthieu Sarter <matthieu.sarter.external@atos.net> | Wed Apr 26 17:29:22 2017 +0200 |
committer | Ian Lance Taylor <iant@golang.org> | Thu Apr 27 00:48:47 2017 +0000 |
tree | dbb1726bf3d555eac116df7abef7d60cf59b29ee | |
parent | 46a669c4ca5b80fd6f6a0a42095804d9f704611d [diff] |
runtime: fix context clobbering on AIX On AIX 64-bits, r13 is a pointer to thread data. setcontext() overwrites r13 with the value saved by getcontext(). So, when a goroutine is scheduled on a new thread, r13 will point to the old thread data after calling setcontext(). Code courtesy of Damien Bergamini. Issue golang/go#19200 Change-Id: I579f002834b467cfbac888feea4951452881fb08 Reviewed-on: https://go-review.googlesource.com/41854 Reviewed-by: Ian Lance Taylor <iant@golang.org>