[Gc] Is GC_ALWAYS_MULTITHREADED safe with single-threaded case

Stefan Kral <[email protected]> Sat, 21 Jun 2014 11:37:30 +0200
Newsgroups gmane.comp.programming.garbage-collection.boehmgc
Message-ID <CAKu0M1TFTX0cDoVQGpZsj87bv4Osao8-rMD0OHLzjut2S_HNrA@mail.gmail.com>
Hello everyone.

My multi-threaded application remains single-threaded for some time after
starting up. The first few collections are likely to occur while
single-threaded.

I wonder if it is safe for me to define GC_ALWAYS_MULTITHREADED when
building the GC.

Also, I am curious to know if using the #define saves some CPU
cycles---compared to calling GC_allow_register_threads after initializing
the GC.

Best Regards,
Stefan.

_______________________________________________
bdwgc mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/bdwgc