2007-01-03 Hans Boehm <Hans.Boehm@hp.com>
authorhboehm <hboehm>
Thu, 3 Jan 2008 23:05:59 +0000 (23:05 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:42 +0000 (21:06 +0400)
* include/gc.h (GC_INIT,GC_init): Update comments.

ChangeLog
include/gc.h

index d131f80..89bd1a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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)
 
index 91dc6dc..14bfa4c 100644 (file)
@@ -237,11 +237,8 @@ GC_API unsigned long GC_time_limit;
 
 /* 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);
 
@@ -1095,7 +1092,8 @@ GC_API void GC_use_DllMain(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)
     /*