Skip to content

Commit

Permalink
Merge pull request #925 from TroutZhang/patch-1
Browse files Browse the repository at this point in the history
Fix crash on Android due to wrong TLS model
  • Loading branch information
wolfpld authored Nov 16, 2024
2 parents 0cac843 + 339a92a commit 5120ad8
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 5120ad8

Please sign in to comment.