[Up] [Contents] [Index] [Summary]

5.9.1 Memory Allocation

SWI-Prolog's memory allocation is based on the malloc(3) library routines. Foreign applications can safely use malloc(3), realloc(3) and free(3). Memory allocation using brk(2) or sbrk(2) is not allowed as these calls conflict with malloc(3).