[elephant-devel] Migration and garbage collection

Henrik Hjelte henrik at evahjelte.com
Sat Mar 22 12:20:01 UTC 2008


On Sat, Mar 22, 2008 at 5:11 AM, Ian Eslick <eslick at media.mit.edu> wrote:

> In the past, we've been able to reclaim instances that were not
> reachable from the root or in an indexed object.  However, with the
> new schema model, all persistent objects are reachable implicitly by
> being in the store's oid->class table (i.e. a get-instances-by-class
> now works for any persistent class).  Thus to reclaim storage you have
> to explicitly drop an instance.
>
> Is this good or bad?  It's nice to always be able to reach instances
> of a class, but for reclamation we could have a class option which is
> something like :weak-class-index t.  That is instances may be
> reachable by get-instances-by-class but it's not guaranteed after a gc
> or migration.



>
>
> Anyone have thoughts on this?  How should we define reachability in
> this new model?


I think this is a good idea. In some cases you might *not* want the
instances to be reached, there could be an option for that as well such as
:class-indexed nil.

/Henrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/elephant-devel/attachments/20080322/f464c754/attachment.html>


More information about the elephant-devel mailing list