mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
1f049e8bac
This patch also updates the jemalloc version. Note, that I've enabled page_id for jemalloc PR_SET_VMA/PR_SET_VMA_ANON_NAME, that requires linux 5.17+ (but ignores EINVAL anyway). v2: add -isystem to fix reserved name for JEMALLOC_OVERRIDE___LIBC_PVALLOC Refs: https://github.com/jemalloc/jemalloc/pull/2304 Refs: https://github.com/ClickHouse/ClickHouse/issues/31531 Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
62 lines
1.6 KiB
C++
62 lines
1.6 KiB
C++
/* include/jemalloc/jemalloc_defs.h. Generated from jemalloc_defs.h.in by configure. */
|
|
/* Defined if __attribute__((...)) syntax is supported. */
|
|
#define JEMALLOC_HAVE_ATTR
|
|
|
|
/* Defined if alloc_size attribute is supported. */
|
|
#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE
|
|
|
|
/* Defined if format_arg(...) attribute is supported. */
|
|
#define JEMALLOC_HAVE_ATTR_FORMAT_ARG
|
|
|
|
/* Defined if format(gnu_printf, ...) attribute is supported. */
|
|
/* #undef JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF */
|
|
|
|
/* Defined if format(printf, ...) attribute is supported. */
|
|
#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF
|
|
|
|
/* Defined if fallthrough attribute is supported. */
|
|
#define JEMALLOC_HAVE_ATTR_FALLTHROUGH
|
|
|
|
/* Defined if cold attribute is supported. */
|
|
#define JEMALLOC_HAVE_ATTR_COLD
|
|
|
|
/*
|
|
* Define overrides for non-standard allocator-related functions if they are
|
|
* present on the system.
|
|
*/
|
|
#if !defined(USE_MUSL)
|
|
#define JEMALLOC_OVERRIDE_MEMALIGN
|
|
#define JEMALLOC_OVERRIDE_VALLOC
|
|
#if defined(__linux__)
|
|
#define JEMALLOC_OVERRIDE_PVALLOC
|
|
#define JEMALLOC_OVERRIDE___LIBC_PVALLOC
|
|
#endif
|
|
#endif
|
|
|
|
/*
|
|
* At least Linux omits the "const" in:
|
|
*
|
|
* size_t malloc_usable_size(const void *ptr);
|
|
*
|
|
* Match the operating system's prototype.
|
|
*/
|
|
#define JEMALLOC_USABLE_SIZE_CONST
|
|
|
|
/*
|
|
* If defined, specify throw() for the public function prototypes when compiling
|
|
* with C++. The only justification for this is to match the prototypes that
|
|
* glibc defines.
|
|
*/
|
|
#define JEMALLOC_USE_CXX_THROW
|
|
|
|
#ifdef _MSC_VER
|
|
# ifdef _WIN64
|
|
# define LG_SIZEOF_PTR_WIN 3
|
|
# else
|
|
# define LG_SIZEOF_PTR_WIN 2
|
|
# endif
|
|
#endif
|
|
|
|
/* sizeof(void *) == 2^LG_SIZEOF_PTR. */
|
|
#define LG_SIZEOF_PTR 3
|