On Sat, May 28, 2011 at 1:55 AM, Richard Frith-Macdonald <[email protected]> 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 _______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
