microsoft/demikernel

Use UnsafeCell for SharedObject

iyzhang opened this issue · 1 comments

Context

For best performance, we should move to UnsafeCell for SharedObjects.

Proposed Solution

Replace the current SharedObject abstraction with one based on UnsafeCell.

We don't need to do this because we are using Rc, which is reference counted, while UnsafeCell is not. Basically we are using Rc with no dynamic borrow checking.