Update memory.c

This commit is contained in:
Theoractice 2016-03-22 20:02:37 +08:00
parent 61cf8f74d9
commit aa744dfa59
1 changed files with 5 additions and 0 deletions

View File

@ -1459,13 +1459,18 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReser
https://gperftools.googlecode.com/git-history/perftools-1.0/src/windows/port.cc https://gperftools.googlecode.com/git-history/perftools-1.0/src/windows/port.cc
Reference: Reference:
https://sourceware.org/ml/pthreads-win32/2008/msg00028.html https://sourceware.org/ml/pthreads-win32/2008/msg00028.html
http://ci.boost.org/svn-trac/browser/trunk/libs/thread/src/win32/tss_pe.cpp
*/ */
static int on_process_term(void) static int on_process_term(void)
{ {
gotoblas_quit(); gotoblas_quit();
return 0; return 0;
} }
#ifdef _WIN64
#pragma comment(linker, "/INCLUDE:_tls_used")
#else
#pragma comment(linker, "/INCLUDE:__tls_used") #pragma comment(linker, "/INCLUDE:__tls_used")
#endif
#pragma data_seg(push, old_seg) #pragma data_seg(push, old_seg)
#pragma data_seg(".CRT$XLB") #pragma data_seg(".CRT$XLB")
static void (APIENTRY *dll_callback)(HINSTANCE h, DWORD ul_reason_for_call, PVOID pv) = DllMain; static void (APIENTRY *dll_callback)(HINSTANCE h, DWORD ul_reason_for_call, PVOID pv) = DllMain;