[m-dev.] Memoed functions and GC

Zoltan Somogyi zs at cs.mu.OZ.AU
Fri Feb 27 13:47:22 AEDT 2004


On 27-Feb-2004, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> Q. Are memo tables always preserved across garbage collections?

With Boehm gc, yes, of course. The native gc doesn't handle tables,
as far as I know, though it could be taught to.

> Q. Can data in memo tables be relocated during garbage collection?

The Boehm gc never relocates anything. The native gc would, and if you used
it, you would need plan B, but using Boehm gc instead seems much more sensible.

Zoltan.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list