]> Cypherpunks repositories - gostls13.git/commit
runtime,runtime/cgo: set up TLS storage for Android Q without cgo
authorElias Naur <mail@eliasnaur.com>
Mon, 8 Apr 2019 15:57:53 +0000 (17:57 +0200)
committerElias Naur <mail@eliasnaur.com>
Mon, 8 Apr 2019 20:21:51 +0000 (20:21 +0000)
commitf18c31a49c1105be0341b32392a433cf65f227da
tree415cc2ec371e080b634b73b4e529737668a194d2
parent973c0312e36fd56b6b2111a07a19de63e0dcbf03
runtime,runtime/cgo: set up TLS storage for Android Q without cgo

Android Q frees a static TLS slot for us to use. Use the offset of
that slot as the default for our TLS offset.

As a result, runtime/cgo is no more a requirement for Android Q and
newer.

Updates #31343
Updates #29674

Change-Id: I759049b2e2865bd3d4fdc05a8cfc6db8b0da1f5d
Reviewed-on: https://go-review.googlesource.com/c/go/+/170955
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/asm_386.s
src/runtime/asm_amd64.s
src/runtime/cgo/gcc_android.c
src/runtime/tls_arm.s
src/runtime/tls_arm64.s