Memory Allocation Routines
Restriction:
The CBL_ routines within this section are not supported when CHARSET"EBCDIC" is in effect.
Note:
The CBL_ALLOC_* and CBL_FREE_* routines cannot be used in sub-programs that have the AMODE directive in effect.
CBL_ALLOC_MEM
Dynamically allocates memory, and can associate allocated heap data with a thread and/or the calling program.
CBL_ALLOC_DYN_MEM
Dynamically allocates memory, and can associate it with the calling program.
CBL_ALLOC_SHMEM
Dynamically allocates shared memory.
CBL_ALLOC_THREAD_MEM
Allocates thread-specific heap memory.
CBL_FREE_DYN_MEM
Frees memory allocated by the CBL_ALLOC_DYN_MEM routine.
CBL_FREE_MEM
Frees memory allocated by the CBL_ALLOC_MEM routine.
CBL_FREE_SHMEM
Frees memory allocated by the CBL_ALLOC_SHMEM routine.
CBL_FREE_THREAD_MEM
Frees memory allocated by the CBL_ALLOC_THREAD_MEM routine.
CBL_MEM_STRATEGY
Changes the memory strategy for an application dynamically.
CBL_MEM_VALIDATE
Validates memory allocations, monitored freed memory, and, if the operating system supports it, compacts memory heaps.
Parent topic:
Library Routines
Related information
Alphabetical List of Library Routines