+2007-01-03 Hans Boehm <Hans.Boehm@hp.com>
+
+ * include/gc.h (GC_INIT,GC_init): Update comments.
+
2007-01-03 Hans Boehm <Hans.Boehm@hp.com> (based on a patch from
John Bowman, and an ancient patch from Fergus Henderson)
/* Public procedures */
-/* Initialize the collector. This is only required when using thread-local
- * allocation, since unlike the regular allocation routines, GC_local_malloc
- * is not self-initializing. If you use GC_local_malloc you should arrange
- * to call this somehow (e.g. from a constructor) before doing any allocation.
- * For win32 threads, it needs to be called explicitly.
+/* Initialize the collector. Portable clients should call GC_INIT() from
+ * the main program instead.
*/
GC_API void GC_init(void);
* no-op and the collector self-initializes. But a number of platforms
* make that too hard.
* A GC_INIT call is required if the collector is built with THREAD_LOCAL_ALLOC
- * defined and the initial allocation call is not to GC_malloc().
+ * defined and the initial allocation call is not to GC_malloc() or
+ * GC_malloc_atomic().
*/
#if defined(__CYGWIN32__) || defined (_AIX)
/*