Add comments explaining the unsafe impls and simplify the code, too

This commit is contained in:
Mark McCaskey
2019-09-17 18:35:12 -07:00
parent 83c3909b00
commit 9c205e05a2
6 changed files with 15 additions and 13 deletions

View File

@ -25,6 +25,7 @@ pub(crate) struct InstanceInner {
pub(crate) vmctx: *mut vm::Ctx,
}
// manually implemented because InstanceInner contains a raw pointer to Ctx
unsafe impl Send for InstanceInner {}
impl Drop for InstanceInner {