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

Function free_aios

g2all/700/lapse.js:358–374  ·  view source on GitHub ↗
(ids_p, num_ids)

Source from the content-addressed store, hash-verified

356}
357
358function free_aios(ids_p, num_ids) {
359 const len = max_aio_ids;
360 const rem = num_ids % len;
361 const num_batches = (num_ids - rem) / len;
362 for (let bi = 0; bi < num_batches; bi++) {
363 const addr = ids_p.add((bi << 2) * len);
364 aio_multi_cancel(addr, len);
365 aio_multi_poll(addr, len);
366 aio_multi_delete(addr, len);
367 }
368 if (rem) {
369 const addr = ids_p.add((num_batches << 2) * len);
370 aio_multi_cancel(addr, len);
371 aio_multi_poll(addr, len);
372 aio_multi_delete(addr, len);
373 }
374}
375
376function free_aios2(ids_p, num_ids) {
377 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