]> git.proxmox.com Git - rustc.git/blame - src/jemalloc/include/jemalloc/internal/huge.h
Imported Upstream version 1.8.0+dfsg1
[rustc.git] / src / jemalloc / include / jemalloc / internal / huge.h
CommitLineData
970d7e83
LB
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
7453a54e 12void *huge_malloc(tsd_t *tsd, arena_t *arena, size_t size, bool zero);
1a4d82fc 13void *huge_palloc(tsd_t *tsd, arena_t *arena, size_t size, size_t alignment,
7453a54e
SL
14 bool zero);
15bool huge_ralloc_no_move(void *ptr, size_t oldsize, size_t size,
16 size_t extra, bool zero);
1a4d82fc 17void *huge_ralloc(tsd_t *tsd, arena_t *arena, void *ptr, size_t oldsize,
7453a54e
SL
18 size_t size, size_t extra, size_t alignment, bool zero,
19 bool try_tcache_dalloc);
1a4d82fc
JJ
20#ifdef JEMALLOC_JET
21typedef void (huge_dalloc_junk_t)(void *, size_t);
22extern huge_dalloc_junk_t *huge_dalloc_junk;
23#endif
7453a54e 24void huge_dalloc(void *ptr);
970d7e83 25size_t huge_salloc(const void *ptr);
1a4d82fc
JJ
26prof_tctx_t *huge_prof_tctx_get(const void *ptr);
27void huge_prof_tctx_set(const void *ptr, prof_tctx_t *tctx);
7453a54e
SL
28bool huge_boot(void);
29void huge_prefork(void);
30void huge_postfork_parent(void);
31void huge_postfork_child(void);
970d7e83
LB
32
33#endif /* JEMALLOC_H_EXTERNS */
34/******************************************************************************/
35#ifdef JEMALLOC_H_INLINES
36
37#endif /* JEMALLOC_H_INLINES */
38/******************************************************************************/