[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Controlling the garbage collector?
From: |
Gary Wong |
Subject: |
Re: Controlling the garbage collector? |
Date: |
Sat, 17 Mar 2001 23:35:37 -0500 |
User-agent: |
Mutt/1.2.5i |
On Sat, Mar 17, 2001 at 07:22:28PM +0600, Bobby D. Bryant wrote:
> Or is it possible to set up data spaces that are exempt from
> examination by the garbage collector?
Yes. It sounds like scm_protect_object() is what you're looking for. I'm
not familiar with the Ada bindings, but in C, you would do something like:
SCM s;
...
s = some_object_which_must_not_be_GCed;
scm_protect_object( s );
...
You can undo the protection with scm_unprotect_object. See libguile/gc.c
in guile-core for more details.
Cheers,
Gary.
--
Gary Wong Consultant, Dependable Distributed Computing, AT&T Shannon Labs
address@hidden http://www.cs.arizona.edu/~gary/