MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / free_aios

Function free_aios

g2all/900/lapse.js:338–354  ·  view source on GitHub ↗
(ids_p, num_ids)

Source from the content-addressed store, hash-verified

336}
337
338function free_aios(ids_p, num_ids) {
339 const len = max_aio_ids;
340 const rem = num_ids % len;
341 const num_batches = (num_ids - rem) / len;
342 for (let bi = 0; bi < num_batches; bi++) {
343 const addr = ids_p.add((bi << 2) * len);
344 aio_multi_cancel(addr, len);
345 aio_multi_poll(addr, len);
346 aio_multi_delete(addr, len);
347 }
348 if (rem) {
349 const addr = ids_p.add((num_batches << 2) * len);
350 aio_multi_cancel(addr, len);
351 aio_multi_poll(addr, len);
352 aio_multi_delete(addr, len);
353 }
354}
355
356function free_aios2(ids_p, num_ids) {
357 const len = max_aio_ids;

Callers 2

leak_kernel_addrsFunction · 0.70
double_free_reqs1Function · 0.70

Calls 4

aio_multi_cancelFunction · 0.70
aio_multi_pollFunction · 0.70
aio_multi_deleteFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected