Index: third_party/tcmalloc/chromium/src/windows/port.cc |
=================================================================== |
--- third_party/tcmalloc/chromium/src/windows/port.cc (revision 110643) |
+++ third_party/tcmalloc/chromium/src/windows/port.cc (working copy) |
@@ -154,7 +154,8 @@ |
extern "C" { |
// This tells the linker to run these functions. |
#pragma data_seg(push, old_seg) |
-#pragma data_seg(".CRT$XLB") |
+ // Use CRT$XLY instead of CRT$XLB to ensure we're called LATER in sequence. |
+#pragma data_seg(".CRT$XLY") |
wtc
2011/12/01 00:04:02
Just curious: why didn't you use CRT$XLZ?
|
void (NTAPI *p_thread_callback_tcmalloc)( |
HINSTANCE h, DWORD dwReason, PVOID pv) = on_tls_callback; |
#pragma data_seg(".CRT$XTU") |