MCPcopy Create free account
hub / github.com/beefytech/Beef / ecache_alloc

Function ecache_alloc

BeefRT/JEMalloc/src/extent.c:77–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77edata_t *
78ecache_alloc(tsdn_t *tsdn, pac_t *pac, ehooks_t *ehooks, ecache_t *ecache,
79 edata_t *expand_edata, size_t size, size_t alignment, bool zero,
80 bool guarded) {
81 assert(size != 0);
82 assert(alignment != 0);
83 witness_assert_depth_to_rank(tsdn_witness_tsdp_get(tsdn),
84 WITNESS_RANK_CORE, 0);
85
86 bool commit = true;
87 edata_t *edata = extent_recycle(tsdn, pac, ehooks, ecache, expand_edata,
88 size, alignment, zero, &commit, false, guarded);
89 assert(edata == NULL || edata_pai_get(edata) == EXTENT_PAI_PAC);
90 assert(edata == NULL || edata_guarded_get(edata) == guarded);
91 return edata;
92}
93
94edata_t *
95ecache_alloc_grow(tsdn_t *tsdn, pac_t *pac, ehooks_t *ehooks, ecache_t *ecache,

Callers 2

pac_alloc_realFunction · 0.85
pac_expand_implFunction · 0.85

Calls 4

extent_recycleFunction · 0.85
edata_pai_getFunction · 0.85
edata_guarded_getFunction · 0.85

Tested by

no test coverage detected