[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is my procedure getting GCed?
From: |
Michael Livshin |
Subject: |
Re: Is my procedure getting GCed? |
Date: |
01 May 2001 20:44:08 +0300 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Copyleft) |
address@hidden (Bill Gribble) writes:
> On Tue, May 01, 2001 at 07:59:01PM +0300, Michael Livshin wrote:
> > scm_protect_object (fProc); // once fProc is intialized, of course
> > scm_unprotect_object (fProc);
>
> This may be more Ritual Incantation than reasoned action, but I
> believe you also need to make sure to call unprotect/protect when you
> assign a new value to the C struct slot
absolutely.
in fact, the more I think about the semantics of scm_protect, the more
I tend to think it's not really convenient.
perhaps what is needed is a simple interface to add/remove GC root
locations, a-la Boehm.
so you would say `scm_gc_add_root (&fProc)' and not worry about it.
comments?
--
C program run -- Run program run -- Run, C program, Run! -- (please)
- Is my procedure getting GCed?, Brett Viren, 2001/05/01
- Re: Is my procedure getting GCed?, Michael Livshin, 2001/05/01
- Re: Is my procedure getting GCed?, Brett Viren, 2001/05/01
- Re: Is my procedure getting GCed?, Bill Gribble, 2001/05/01
- Re: Is my procedure getting GCed?,
Michael Livshin <=
- Re: Is my procedure getting GCed?, Dirk Herrmann, 2001/05/07
- Re: Is my procedure getting GCed?, Michael Livshin, 2001/05/07
- Re: Is my procedure getting GCed?, Marius Vollmer, 2001/05/14
- Re: Is my procedure getting GCed?, Dirk Herrmann, 2001/05/14
- Re: Is my procedure getting GCed?, Dirk Herrmann, 2001/05/15
- Re: Is my procedure getting GCed?, Brett Viren, 2001/05/01
- Re: Is my procedure getting GCed?, Marius Vollmer, 2001/05/01
- Re: Is my procedure getting GCed?, Dale P. Smith, 2001/05/01
- Re: Is my procedure getting GCed?, Jed Davis, 2001/05/02