Conversation

It has a significant performance cost, but it's reasonable as long as the base quarantine size is chosen to be a power of 2. It might make sense to add that as one of the future sanity checks for the configuration. There's not much that could be done to further reduce the cost.
Replying to
It's a very important security feature, so the added overhead for freeing small allocations just has to be accepted for the default configuration. It can be disabled by setting the slab quarantine lengths to 0 if the cost is too high, like some of the other security features.
1