Skip to content

Commit c091d4c

Browse files
Rahul Chaudhryianlancetaylor
Rahul Chaudhry
authored andcommitted
runtime: set TLSG_IS_VARIABLE for android/arm64.
On android, runtime.tls_g is a normal variable. TLS offset is computed in x_cgo_inittls. Change-Id: I18bc9a736d5fb2a89d0f798956c754e3c10d10e2 Reviewed-on: https://go-review.googlesource.com/17246 Reviewed-by: David Crawshaw <[email protected]>
1 parent 4480d6a commit c091d4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/runtime/tls_arm64.h

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#ifdef GOOS_android
66
#define TLS_linux
7+
#define TLSG_IS_VARIABLE
78
#endif
89
#ifdef GOOS_linux
910
#define TLS_linux

0 commit comments

Comments
 (0)