FunctionPackage: exclToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version

gc-after-c-hooks

Arguments:

Returns a list whose entries each represent a C (or C-compatible) function to call after garbage collections of any kind. The typical declaration of the C function can be

int myafterhook(void);

The list entry itself must be an (unsigned-byte 32) array of at least 1 entry, and its first entry must be the address of the C function.

setf can be used to store into the list.

A typical usage of this feature is

(let ((myaddr (ff:get-entry-point "myafterhook"))) (push (make-array 1 :element-type '(unsigned-byte 32) :initial-element myaddr) (excl:gc-after-c-hooks)))

No gc hooks are saved across dumplisps. All applications are responsible for re-establishing their own gc-after-c-hooks.

See also gc.htm for general information on garbage collection in Allegro CL.


Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version