fix compiler optimize thread local variable access on x86_64 (#2248)

This commit is contained in:
Adonis Ling
2023-06-05 04:57:21 +08:00
committed by GitHub
parent 72ed304311
commit 1b486c6f2b
+1 -1
View File
@@ -46,7 +46,7 @@
var_name = v; \
}
#if defined(__clang__) && (defined(__aarch64__) || defined(__arm64__))
#if defined(__clang__)
// Clang compiler is incorrectly caching the address of thread_local variables
// across a suspend-point. The following macros used to disable the volatile
// thread local access optimization.