Previous: , Up: objects codes   [Index]


13.23.4 Memory and garbage collection

Code objects are not allocated on the heap like other common objects (pairs, vectors, …); rather they are allocated in specially memory mapped regions which receive execution protection.

Whenever the garbage collector encounters a reference to a code object: it moves the code object itself into a new location to reduce fragmentation.