polars-ocaml icon indicating copy to clipboard operation
polars-ocaml copied to clipboard

Stop using unsafe ocaml_failwith function in Rust

Open mt-caret opened this issue 1 year ago • 0 comments

Raising OCaml exceptions from Rust code generally leaks memory since it skips dropping Rust values which are in scope. We instead unwrap() which will panic, unwind, and be caught at the FFI boundary instead.

mt-caret avatar Sep 09 '23 05:09 mt-caret