summaryrefslogtreecommitdiffstats
path: root/contrib/libs/jemalloc/patches/config-malloc-hook.patch
blob: d645fd32d21bfc18d6349f57265c51fe3afeaf35 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
Make sure that __malloc_hook functions are exported from the library.

This is required to make mixed build types (asan + regular build) work properly.
See DEVTOOLSSUPPORT-88738 for the details.
--- a/include/jemalloc/internal/jemalloc_internal_defs-linux.h	(989d5f3fa2d340cd2931b54d12f09f580991116d)
+++ b/include/jemalloc/internal/jemalloc_internal_defs-linux.h	(0d8b9317f37ded4b37d7db4aab938e75843b65c4)
@@ -370,1 +370,1 @@
-/* #undef JEMALLOC_GLIBC_MALLOC_HOOK */
+#define JEMALLOC_GLIBC_MALLOC_HOOK 
@@ -370,1 +370,1 @@
-/* #undef JEMALLOC_GLIBC_MEMALIGN_HOOK */
+#define JEMALLOC_GLIBC_MEMALIGN_HOOK