Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: third_party/tcmalloc/chromium/src/base/vdso_support.h

Issue 1578163002: Enable tcmalloc VDSO support only on x86 to reduce static initializers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ghh, comment Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/tcmalloc/README.chromium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tcmalloc/chromium/src/base/vdso_support.h
diff --git a/third_party/tcmalloc/chromium/src/base/vdso_support.h b/third_party/tcmalloc/chromium/src/base/vdso_support.h
index b97ab254d38eac51c6158c0203d0a19d37487ef1..94fad3b8bc20061c8932dfe0db2f4dff475d7bc3 100644
--- a/third_party/tcmalloc/chromium/src/base/vdso_support.h
+++ b/third_party/tcmalloc/chromium/src/base/vdso_support.h
@@ -61,7 +61,11 @@
#ifdef HAVE_ELF_MEM_IMAGE
+// This matches the same conditions of stacktrace_x86-inl.h, the only client of
+// vdso_support, to avoid static initializers.
+#if defined(__linux__) && defined(__i386__)
#define HAVE_VDSO_SUPPORT 1
+#endif
#include <stdlib.h> // for NULL
« no previous file with comments | « third_party/tcmalloc/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698