bytecodealliance / lucet

Lucet, the Sandboxing WebAssembly Compiler.
Apache License 2.0
4.06k stars 165 forks source link

Add a few bits of polish to AllocStrategy so that it's easier to use elsewhere #542

Closed fst-crenshaw closed 4 years ago

fst-crenshaw commented 4 years ago

Add a few bits of polish to AllocStrategy so that it's easier to use elsewhere.

When AllocStrategy is used by a data structure passed across multiple threads, it would be handy to have both the AllocStrategy and its inner Mutex equipped with Send. In times where one wants to use #[derive(Debug)], it would also be handy for AllocStrategy to have an impl of Debug.