Single-Level Storage Heap Interfaces
Single-Level Storage Heap Interfaces
Single-Level Storage Heap Interfaces
Bindable APIs are provided for all heap operations. Applications can be written using either the bindable APIs, language-intrinsic functions, or both.
The bindable APIs fall into the following categories:
- Basic heap operations. These operations can be used on the default
heap and on user-created heaps.
- The Free Storage (CEEFRST) bindable API frees one previous allocation of heap storage.
- The Get Heap Storage (CEEGTST) bindable API allocates storage within a heap.
- The Reallocate Storage (CEECZST) bindable API changes the size of previously allocated storage.
- Extended heap operations. These operations can be used only on
user-created heaps.
- The Create Heap (CEECRHP) bindable API creates a new heap.
- The Discard Heap (CEEDSHP) bindable API discards an existing heap.
- The Mark Heap (CEEMKHP) bindable API returns a token that can be used to identify heap storage to be freed by the CEERLHP bindable API.
- The Release Heap (CEERLHP) bindable API frees all storage allocated in the heap since the mark was specified.
- Heap allocation strategies
- The Define Heap Allocation Strategy (CEE4DAS) bindable API defines an allocation strategy that determines the attributes for a heap created with the CEECRHP bindable API.
For information about the storage management APIs, see the API topic collection in the Programming category of the IBM® i Information Center.