Using memory heaps

In addition to the memory management functions defined by ANSI, XL C/C++ provides enhanced versions of memory management functions that can help you improve program performance and debug your programs. With these functions, you can:

All the versions of the memory management functions actually work in the same way. They differ only in the heap from which they allocate, and in whether they save information to help you debug memory problems. The memory allocated by all of these functions is suitably aligned for storing any type of object.

Managing memory with multiple heaps discusses the advantages of using multiple, user-created heaps; summarizes the functions available to manage user-created heaps; provides procedures for creating, expanding, using, and destroying user-defined heaps; and provides examples of programs that create user heaps using both regular and shared memory.

Debugging memory heaps discusses the functions available for checking and debugging the default and user-created heaps.