You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If pool::arc exposes manual strong-count operations, the safety contract needs to be very explicit. The alloc::sync::Arc APIs are unsafe because callers must guarantee the raw pointer came from a valid Arc allocation and that increments/decrements are balanced. For heapless, it would be useful to spell out whether these APIs are meant for FFI/intrusive handles, and to add tests for double-decrement, leak, and pool-slot reuse behavior.
Activity
hiSandog commentedon Jun 30, 2026
If
pool::arcexposes manual strong-count operations, the safety contract needs to be very explicit. Thealloc::sync::ArcAPIs are unsafe because callers must guarantee the raw pointer came from a valid Arc allocation and that increments/decrements are balanced. For heapless, it would be useful to spell out whether these APIs are meant for FFI/intrusive handles, and to add tests for double-decrement, leak, and pool-slot reuse behavior.