discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Garbage Collection


From: Andrew Pinski
Subject: Re: Garbage Collection
Date: Sat, 28 May 2011 02:03:23 -0700

On Sat, May 28, 2011 at 1:55 AM, Richard Frith-Macdonald
<address@hidden> wrote:
> My understanding was the the boehm garbage collector handles collection in a 
> separate thread which forces a barrier so that other threads always access 
> the memory in a consistent state.
> However, if that's not the case then I guess it might be that zeroing weak 
> pointers with boehm are not thread-safe (though I've not seen a problem).

It is thread safe and in fact it does stop the other threads.  This is
the same model that is used for Java also..  In fact boehm GC is used
in GCJ, an java to native compiler.

-- Pinski



reply via email to

[Prev in Thread] Current Thread [Next in Thread]