Conversation

Was thinking about implementing realloc for arena allocator, so I did some digging. And I really like how Rust allocator's idea of splitting realloc into shrink and grow.
1
4
With "grow," what we want is "if we can't grow in place, we still want to grab some memory elsewhere." With "shrink," we want to guarantee that no new memory gets allocated. They are two very different operations.
1
7