Leverage new Windows API TlsGetValue2 for performance

This commit is contained in:
Ben Niu
2023-12-21 20:33:41 -08:00
committed by Qi Wang
parent e29ac61987
commit 9e123a833c
3 changed files with 32 additions and 4 deletions

View File

@@ -25,6 +25,10 @@ bool tsd_booted = false;
DWORD tsd_tsd;
tsd_wrapper_t tsd_boot_wrapper = {false, TSD_INITIALIZER};
bool tsd_booted = false;
#if JEMALLOC_WIN32_TLSGETVALUE2
TGV2 tls_get_value2 = NULL;
HMODULE tgv2_mod = NULL;
#endif
#else
/*