]> Cypherpunks repositories - gostls13.git/commit
runtime: don't use thread local storage before it is set up on iOS
authorElias Naur <elias.naur@gmail.com>
Sat, 17 Nov 2018 09:00:14 +0000 (10:00 +0100)
committerElias Naur <elias.naur@gmail.com>
Sat, 17 Nov 2018 20:33:30 +0000 (20:33 +0000)
commita889aaf8bfcf803eaed411ebae672cc6c52252bc
treeb67eb104a6187623347df93469cd20ca6e4ddbc6
parent1f388bc80628f38b033fb229b76997d8f5660c10
runtime: don't use thread local storage before it is set up on iOS

CL 138675 added a call to runtime.save_g which uses thread local
storage to store g. On iOS however, that storage was not initialized
 yet. Move the call to below _cgo_init where it is set up.

Change-Id: I14538d3e7d56ff35a6fa02c47bca306d24c38010
Reviewed-on: https://go-review.googlesource.com/c/150157
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/asm_arm64.s