malloc


Also found in: Acronyms, Wikipedia.

malloc

C's standard library routine for storage allocation. It takes the number of bytes required and returns a pointer to a block of that size. Storage is allocated from a heap which lies after the end of the program and data areas. Memory allocated with malloc must be freed explicitly using the "free" routine before it can be re-used.

gc is a storage allocator with garbage collection that is intended to be used as a plug-in replacement for malloc.
References in periodicals archive ?
All calls to the runtime library's allocation routines are intercepted, including new, delete, malloc, calloc, free, and related routines.
4 includes a preview implementation of the highly used malloc memory allocation library, which is tuned for the latest, anticipated generation of multicore processors.
Typical examples of the errors detected include `Failure allocating memory using the malloc function' and `Invalid argument passed to the memory deallocation function free,' and others.