User-created heap storage

Language Environment can also manage, as a heap, storage which is obtained by a C/C++ application. The following functions provide this user-created heap storage capability:
  • _ucreate() – Creates a heap using storage provided by the caller
  • _umalloc() – Allocates storage elements from the user-created heap
  • _ufree() – Returns storage elements to the user-created heap
  • _uheapreport() – Generates a storage report to assist in tuning the application's use of the user-created heap

This allows the application more flexibility in choosing the attributes of the heap storage. For instance, the storage could be shared memory that is accessed by multiple programs.

For more information about the user-created heap functions, see z/OS XL C/C++ Runtime Library Reference.