Re: Re: my garbage collector sucks

"Mark Hahn" <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
"Greg Ewing" <[email protected]> wrote

> Mark Hahn <[email protected]>:
>
> > I have continuous tracing (mark and sweep) due to my locking objects.
> > He must have to stop the interpreter when he garbage collects because
> > Parrot doesn't have locking objects.
>
> Even with object locking, I don't see how you can get away with not
> stopping the world while you're doing a mark pass.  What ensures that
> the marker doesn't miss anything if links can be changing while it's
> running?

Duh!  I forgot that I already fixed this problem.  My write lock routine
automatically marks any modified object.  This means than any object moved
or touched in any way during the mark phase of garbage collection is not
missed by a mark operation.  This makes sense since any object being touched
is obviously reachable anyway.

Once again object locking saves the day.  Have I told you how much I love
object locking? :-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.