Skip to content

Commit

Permalink
Fix crash on Android due to wrong TLS model
Browse files Browse the repository at this point in the history
  • Loading branch information
TroutZhang authored Nov 15, 2024
1 parent 0cac843 commit 339a92a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/client/tracy_rpmalloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,9 @@ static pthread_key_t _memory_thread_heap;
# define _Thread_local __declspec(thread)
# define TLS_MODEL
# else
# ifndef __HAIKU__
# if defined(__ANDROID__) && __ANDROID_API__ >= 29 && defined(__NDK_MAJOR__) && __NDK_MAJOR__ >= 26
# define TLS_MODEL __attribute__((tls_model("local-dynamic")))
# elif !defined(__HAIKU__)
# define TLS_MODEL __attribute__((tls_model("initial-exec")))
# else
# define TLS_MODEL
Expand Down

0 comments on commit 339a92a

Please sign in to comment.