Skip to content

Commit

Permalink
Avoid specifying a tls model
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansson committed May 12, 2024
1 parent f92bf85 commit 955f44b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpmalloc/rpmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,8 @@ static size_t os_page_size;
#define TLS_MODEL
#define _Thread_local __declspec(thread)
#else
#define TLS_MODEL __attribute__((tls_model("initial-exec")))
//#define TLS_MODEL __attribute__((tls_model("initial-exec")))
#define TLS_MODEL
#endif
static _Thread_local heap_t* global_thread_heap TLS_MODEL = &global_heap_fallback;

Expand Down

0 comments on commit 955f44b

Please # to comment.