hawkw / sharded-slab

a lock-free concurrent slab (experimental)
MIT License
269 stars 17 forks source link

Panic when refcount overflows #22

Closed tmandry closed 4 years ago

tmandry commented 4 years ago

Instead of silently wrapping, the refcount increment should panic if it overflows.

hawkw commented 4 years ago

For future reference, this is referring to https://github.com/hawkw/sharded-slab/blob/12306dc6c56354e6cb3eea449ab6832d5ed53f8b/src/page/slot.rs#L527