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

Function experimental_batch_alloc_ctl

BeefRT/JEMalloc/src/ctl.c:4268–4286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4266};
4267
4268static int
4269experimental_batch_alloc_ctl(tsd_t *tsd, const size_t *mib,
4270 size_t miblen, void *oldp, size_t *oldlenp, void *newp, size_t newlen) {
4271 int ret;
4272
4273 VERIFY_READ(size_t);
4274
4275 batch_alloc_packet_t batch_alloc_packet;
4276 ASSURED_WRITE(batch_alloc_packet, batch_alloc_packet_t);
4277 size_t filled = batch_alloc(batch_alloc_packet.ptrs,
4278 batch_alloc_packet.num, batch_alloc_packet.size,
4279 batch_alloc_packet.flags);
4280 READ(filled, size_t);
4281
4282 ret = 0;
4283
4284label_return:
4285 return ret;
4286}
4287
4288static int
4289prof_stats_bins_i_live_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,

Callers

nothing calls this directly

Calls 1

batch_allocFunction · 0.85

Tested by

no test coverage detected