islet icon indicating copy to clipboard operation
islet copied to clipboard

Properly handling errors in the middle of handlers

Open jinbpark opened this issue 4 months ago • 0 comments

e.g.,

listen!(mainloop, rmi::REC_CREATE, |arg, ret, rmm| {
   ...
   rmm.page_table.map(rec, true);   // map here
   ...
   rec.set_vtcr(prepare_vtcr(&rd)?);  // something goes wrong in the middle. --> we need to unmap "rec" in this case
}

analyze all handler functions in this context, and handle this error properly

jinbpark avatar Oct 10 '24 01:10 jinbpark