]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: use free TLS slot on Android Q
authorElias Naur <mail@eliasnaur.com>
Fri, 29 Mar 2019 11:13:02 +0000 (12:13 +0100)
committerElias Naur <mail@eliasnaur.com>
Fri, 29 Mar 2019 17:16:54 +0000 (17:16 +0000)
commit95f18757a0fa283c4237ca03b48049980fe9b9c3
tree8fc7d91caa9c1986cb45183010b1c9d913332a20
parent1d10b17589ce651caeb0841b2312065ee44f800d
runtime/cgo: use free TLS slot on Android Q

Android assumes pthread tls keys correspond to some offset from the
TLS base. This is about to change in a future version of Android.
Fortunately, Android Q leaves a slot open for use to use, TLS_SLOT_APP.

Fixes #29674

Change-Id: Id6ba19afacdfed9b262453714715435e2544185f
Reviewed-on: https://go-review.googlesource.com/c/go/+/170117
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/cgo/gcc_android.c