From 955f44b6c35662e19c3e5f8ae93d8b658134c2ca Mon Sep 17 00:00:00 2001 From: Mattias Jansson Date: Sun, 12 May 2024 21:23:46 +0200 Subject: [PATCH] Avoid specifying a tls model --- rpmalloc/rpmalloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpmalloc/rpmalloc.c b/rpmalloc/rpmalloc.c index 0da413c..f749faf 100644 --- a/rpmalloc/rpmalloc.c +++ b/rpmalloc/rpmalloc.c @@ -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;