Go to the first, previous, next, last section, table of contents.


Atomic memory allocation

The Boehm's garbage collector normally assumes that all the memory allocated potentially contains pointers. However this is not always true. For memory zones that one knows they don't contain pointers to other allocated memory, the GC_malloc_atomic() can be used. This function marks the returned memory zone as not containing any pointer. Use this function for allocating strings and memory zones that does not contain pointers.


Go to the first, previous, next, last section, table of contents.