hawkw / sharded-slab

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

feat: emit a nicer panic when thread count overflows `MAX_SHARDS` #64

Closed danielhenrymantilla closed 2 years ago

danielhenrymantilla commented 2 years ago

Tackles https://github.com/hawkw/sharded-slab/issues/62#issuecomment-939336275. I don't know if there are other places that could panic, though, I just personally hit that line.