Share a Heap

To correctly share a heap, you must observe certain requirements (none of these are done by default).

For a fixed-size shared heap, you must do the following:

If you use _uaddmem to expand your heap, you must also ensure that all interested and using processes have access to the new block.

If you use your own getmore_fn and release_fn functions to dynamically expand and shrink your heap, you must also do the following:



Memory Management Functions


Create Your Own Function to Expand a Heap