26#ifndef JEMALLOC_WIN_INCLUDED
27#define JEMALLOC_WIN_INCLUDED
37const constexpr char *jemalloc_dll_name =
"jemalloc.dll";
38const constexpr char *jemalloc_malloc_function_name =
"je_malloc";
39const constexpr char *jemalloc_calloc_function_name =
"je_calloc";
40const constexpr char *jemalloc_realloc_function_name =
"je_realloc";
41const constexpr char *jemalloc_free_function_name =
"je_free";
44extern bool is_my_malloc_using_jemalloc();
45struct LogMessageInfo {
48 std::string m_message;
50extern std::vector<LogMessageInfo> fetch_jemalloc_initialization_messages();
52const int64_t MY_MALLOC_USING_JEMALLOC_ER = 0;
53const int64_t MY_MALLOC_USING_STD_MALLOC_ER = 1;
54const int64_t MY_MALLOC_LOADLIBRARY_FAILED_ER = 2;
55const int64_t MY_MALLOC_GETPROCADDRESS_FAILED_ER = 3;
58extern void *(*pfn_malloc)(
size_t size);
59extern void *(*pfn_calloc)(
size_t number,
size_t size);
60extern void *(*pfn_realloc)(
void *ptr,
size_t size);
61extern void (*pfn_free)(
void *ptr);
62extern std::once_flag init_malloc_pointers_flag;
63void init_malloc_pointers();
Definition of the global "loglevel" enumeration.
loglevel
Definition: my_loglevel.h:40
Definition: ut0tuple.h:56