TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
huge.h
Go to the documentation of this file.
1 /******************************************************************************/
2 #ifdef JEMALLOC_H_TYPES
3 
4 #endif /* JEMALLOC_H_TYPES */
5 /******************************************************************************/
6 #ifdef JEMALLOC_H_STRUCTS
7 
8 #endif /* JEMALLOC_H_STRUCTS */
9 /******************************************************************************/
10 #ifdef JEMALLOC_H_EXTERNS
11 
12 /* Huge allocation statistics. */
13 extern uint64_t huge_nmalloc;
14 extern uint64_t huge_ndalloc;
15 extern size_t huge_allocated;
16 
17 /* Protects chunk-related data structures. */
18 extern malloc_mutex_t huge_mtx;
19 
20 void *huge_malloc(size_t size, bool zero, dss_prec_t dss_prec);
21 void *huge_palloc(size_t size, size_t alignment, bool zero,
22  dss_prec_t dss_prec);
23 bool huge_ralloc_no_move(void *ptr, size_t oldsize, size_t size,
24  size_t extra);
25 void *huge_ralloc(void *ptr, size_t oldsize, size_t size, size_t extra,
26  size_t alignment, bool zero, bool try_tcache_dalloc, dss_prec_t dss_prec);
27 #ifdef JEMALLOC_JET
28 typedef void (huge_dalloc_junk_t)(void *, size_t);
29 extern huge_dalloc_junk_t *huge_dalloc_junk;
30 #endif
31 void huge_dalloc(void *ptr, bool unmap);
32 size_t huge_salloc(const void *ptr);
33 dss_prec_t huge_dss_prec_get(arena_t *arena);
34 prof_ctx_t *huge_prof_ctx_get(const void *ptr);
35 void huge_prof_ctx_set(const void *ptr, prof_ctx_t *ctx);
36 bool huge_boot(void);
37 void huge_prefork(void);
38 void huge_postfork_parent(void);
39 void huge_postfork_child(void);
40 
41 #endif /* JEMALLOC_H_EXTERNS */
42 /******************************************************************************/
43 #ifdef JEMALLOC_H_INLINES
44 
45 #endif /* JEMALLOC_H_INLINES */
46 /******************************************************************************/
#define huge_ralloc_no_move
Definition: private_namespace.h:212
#define huge_dalloc_junk
Definition: private_namespace.h:199
#define huge_dss_prec_get
Definition: private_namespace.h:200
#define huge_mtx
Definition: private_namespace.h:202
#define huge_dalloc
Definition: private_namespace.h:198
#define huge_postfork_parent
Definition: private_namespace.h:207
#define huge_prefork
Definition: private_namespace.h:208
#define huge_ndalloc
Definition: private_namespace.h:203
#define huge_nmalloc
Definition: private_namespace.h:204
#define huge_allocated
Definition: private_namespace.h:196
#define huge_palloc
Definition: private_namespace.h:205
#define huge_prof_ctx_set
Definition: private_namespace.h:210
#define huge_ralloc
Definition: private_namespace.h:211
#define huge_postfork_child
Definition: private_namespace.h:206
unsigned __int64 uint64_t
Definition: stdint.h:90
#define huge_boot
Definition: private_namespace.h:197
#define huge_malloc
Definition: private_namespace.h:201
static unorm16 zero()
Definition: unorm16.h:82
#define huge_prof_ctx_get
Definition: private_namespace.h:209
#define huge_salloc
Definition: private_namespace.h:213