From 63b0989df57a9dd2b867920307b0d038df695a54 Mon Sep 17 00:00:00 2001 From: Daan Date: Sun, 4 May 2025 21:41:26 -0700 Subject: [PATCH] revert use of selectany for msvc (issue #1078) --- include/mimalloc/prim.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/mimalloc/prim.h b/include/mimalloc/prim.h index 527bb97a..2d508148 100644 --- a/include/mimalloc/prim.h +++ b/include/mimalloc/prim.h @@ -270,9 +270,6 @@ static inline void mi_prim_tls_slot_set(size_t slot, void* value) mi_attr_noexce // defined in `init.c`; do not use these directly -#ifdef _MSC_VER -__declspec(selectany) // make it part of the comdat section to have faster TLS access (issue #1078) -#endif extern mi_decl_hidden mi_decl_thread mi_heap_t* _mi_heap_default; // default heap to allocate from extern mi_decl_hidden bool _mi_process_is_initialized; // has mi_process_init been called?