Closed harendra-kumar closed 1 year ago
As per docs it works for unpinned mutable byte array only. In our code it works for pinned and unpinned both.
We already reuse the old array when we truncate up to a certain threshold, so we can continue using the existing code.
Currently we implement realloc by allocating a new array and copying the old array into it.