[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gc and deallocation
- To: Robert Bruce Findler <robby+@CMU.EDU>, email@example.com
- Subject: Re: gc and deallocation
- From: firstname.lastname@example.org (Bill St. Clair)
- Date: Wed, 5 Jan 1994 12:11:54 -0600
At 10:40 PM 1/4/94 -0500, Robert Bruce Findler wrote:
>What happens to memory that is allocated in a clos object when the
>object is gc'ed? Is there a method that should be defined to clean-up
>after the object? Some sort of deallocate-instance?
When a CLOS object is garbage collected, it's memory is freed for reuse.
The memory of the objects in its slots will also be freed if those objects
are not referenced by any other live objects. MCL's garbage collector
does not support an explicit user-specifiable clean-up procedure.
You normally don't need one, though some applications, e.g. persistent
object databases, can benefit from such a feature.