Skip to content

Commit 2b412cf

Browse files
committed
Fix __ImageBase issue and revert FLS usage
1 parent 227c04f commit 2b412cf

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎Include/internal/pycore_mimalloc.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
// CPython never uses mimalloc's C++ operator new APIs, so don't define a weak
1818
// std::get_new_handler() (_ZSt15get_new_handlerv) in libpython.
1919
# define MI_NO_CXX_NEW_HANDLER 1
20-
# ifdef MS_WINDOWS
21-
// Initialize from a CRT initializer and use FLS for thread cleanup instead
22-
// of TLS callbacks, which run during DLL attach before the CRT is set up.
23-
# define MI_WIN_INIT_USE_FLS 1
24-
# endif
2520
# ifdef Py_GIL_DISABLED
2621
# define MI_PRIM_THREAD_ID _Py_ThreadId
2722
# define MI_CPYTHON 1

0 commit comments

Comments
 (0)