pavel-kirienko / o1heap

Constant-complexity deterministic memory allocator (heap) for hard real-time high-integrity embedded systems. There is very little activity because the project is finished and does not require further changes.
MIT License
245 stars 26 forks source link

Add o1HeapReallocate #21

Open thirtytwobits opened 5 months ago

thirtytwobits commented 5 months ago

supporting realloc would be particularly powerful when an allocation's fragment size was much larger then the requested allocation. Subsequent reallocs would incur no memory movement costs where the new size remained within the size of the fragment.

thirtytwobits commented 5 months ago

Note that CETL::PMR support realloc which is an extension to the C++ standard that does not utilize this method.