]> git.proxmox.com Git - rustc.git/blame - src/jemalloc/include/jemalloc/internal/huge.h
Imported Upstream version 1.9.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
54a0048b
SL
12void *huge_malloc(tsd_t *tsd, arena_t *arena, size_t usize, bool zero,
13 tcache_t *tcache);
14void *huge_palloc(tsd_t *tsd, arena_t *arena, size_t usize, size_t alignment,
15 bool zero, tcache_t *tcache);
16bool huge_ralloc_no_move(tsd_t *tsd, void *ptr, size_t oldsize,
17 size_t usize_min, size_t usize_max, bool zero);
1a4d82fc 18void *huge_ralloc(tsd_t *tsd, arena_t *arena, void *ptr, size_t oldsize,
54a0048b 19 size_t usize, size_t alignment, bool zero, tcache_t *tcache);
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
54a0048b
SL
24void huge_dalloc(tsd_t *tsd, void *ptr, tcache_t *tcache);
25arena_t *huge_aalloc(const void *ptr);
970d7e83 26size_t huge_salloc(const void *ptr);
1a4d82fc
JJ
27prof_tctx_t *huge_prof_tctx_get(const void *ptr);
28void huge_prof_tctx_set(const void *ptr, prof_tctx_t *tctx);
54a0048b 29void huge_prof_tctx_reset(const void *ptr);
970d7e83
LB
30
31#endif /* JEMALLOC_H_EXTERNS */
32/******************************************************************************/
33#ifdef JEMALLOC_H_INLINES
34
35#endif /* JEMALLOC_H_INLINES */
36/******************************************************************************/