• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef JEMALLOC_INTERNAL_LARGE_EXTERNS_H
2 #define JEMALLOC_INTERNAL_LARGE_EXTERNS_H
3 
4 void *large_malloc(tsdn_t *tsdn, arena_t *arena, size_t usize, bool zero);
5 void *large_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, size_t alignment,
6     bool zero);
7 bool large_ralloc_no_move(tsdn_t *tsdn, extent_t *extent, size_t usize_min,
8     size_t usize_max, bool zero);
9 void *large_ralloc(tsdn_t *tsdn, arena_t *arena, extent_t *extent, size_t usize,
10     size_t alignment, bool zero, tcache_t *tcache);
11 
12 typedef void (large_dalloc_junk_t)(void *, size_t);
13 extern large_dalloc_junk_t *JET_MUTABLE large_dalloc_junk;
14 
15 typedef void (large_dalloc_maybe_junk_t)(void *, size_t);
16 extern large_dalloc_maybe_junk_t *JET_MUTABLE large_dalloc_maybe_junk;
17 
18 void large_dalloc_prep_junked_locked(tsdn_t *tsdn, extent_t *extent);
19 void large_dalloc_finish(tsdn_t *tsdn, extent_t *extent);
20 void large_dalloc(tsdn_t *tsdn, extent_t *extent);
21 size_t large_salloc(tsdn_t *tsdn, const extent_t *extent);
22 prof_tctx_t *large_prof_tctx_get(tsdn_t *tsdn, const extent_t *extent);
23 void large_prof_tctx_set(tsdn_t *tsdn, extent_t *extent, prof_tctx_t *tctx);
24 void large_prof_tctx_reset(tsdn_t *tsdn, extent_t *extent);
25 
26 #endif /* JEMALLOC_INTERNAL_LARGE_EXTERNS_H */
27