35.6. Foreign Pointers
Prev Chapter 35. Overview of CLISP's Garbage Collection Next

35.6. Foreign Pointers

Pointers to C functions and to malloced data can be hidden in CLISP objects of type machine_type; garbage-collect will not modify its value. But one should not dare to assume that a C stack pointer or the address of a C function in a shared library satisfies the same requirements.

If another pointer is to be viewed as a CLISP object, it is best to box it, e.g. in a SIMPLE-BIT-VECTOR or in an Fpointer (using allocate_fpointer().)


These notes document CLISP version 2.49Last modified: 2010年07月07日




35.5. The burden of garbage-collection upon the rest of CLISP Home 35.7. Garbage Collection and Multithreading

AltStyle によって変換されたページ (->オリジナル) /