Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve realloc on fixed buffer allocator (#1238)
* Add test to check re-use of memory * Check if realloc has to reallocate the last allocated memory block. If so extend that block instead of allocating a new one. * Also check if the realloc actually preserves the data.
- Loading branch information
1 parent
278829f
commit 69e50ad
Showing
1 changed file
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters