On Wed, 3 Sep 2003, Leopold Toetsch wrote:

> K Stol <[EMAIL PROTECTED]> wrote:
> 
> > just a thought: aren't shared objects/data/whatever protected by a
> > mutex? To me, that's the obvious solution for accessing shared data.
> > As I said, just a thought.
> 
> They will be protected by a mutex yes. That helps against two threads
> updating the same PMC at the same time.
> 
> But if one thread sets pmc->next_for_GC the next thread might encounter
> this PMC later (albeit for this thread at the first time) and think, I've
> visited this PMC already and just flush out the object ID and not the
> whole PMC.

The freezing routine can just lock the PMCs as it freezes them. As long as 
it keeps the original chain head around, it can then just walk the list 
again and unlock them.

                                        Dan

Reply via email to