[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Senora GC ?



    Does this mean the registered location cannot be on
stack, but must be on heap that is not deleted?

    If it is on stack, it must outlast the lifetime
of the garbage collector, right?  Otherwise,
woudn't it try to delete the location (which may
not exist)?

Thanks in advance.

----- Original Message ----- 
From: Matthew Flatt <mflatt@cs.utah.edu>
To: Brent Fulgham <brent.fulgham@xpsystems.com>
Cc: <plt-scheme@fast.cs.utah.edu>
Sent: Tuesday, January 02, 2001 4:30 PM
Subject: RE: Senora GC ?


> Quoting Brent Fulgham:
> > Now, when I reassign "v" to "New string.", will the old value
> > v originally pointed to now be collected (since the GC should
> > see that the original Scheme_Object is no longer referred to),
> 
> Yes.
> 
> In other words, you're registering a location with the GC, not any
> particular value in that location.
> 
> (There's no way to un-register a location.)
> 
> Matthew
>