2008-08-27 Hans Boehm <Hans.Boehm@hp.com> (with help from Marco Maggi)
authorhboehm <hboehm>
Wed, 27 Aug 2008 20:40:25 +0000 (20:40 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:43 +0000 (21:06 +0400)
* doc/simple_example.html: Update thread-local allocation
description.

ChangeLog
doc/simple_example.html

index f6dfcec..2fe46e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-27  Hans Boehm <Hans.Boehm@hp.com> (with help from Marco Maggi)
+       * doc/simple_example.html: Update thread-local allocation
+       description.
+
 2008-08-26  Hans Boehm <Hans.Boehm@hp.com> (with help from Marco Maggi)
        * configure.ac: Check for gc-debug earlier; replace remaining
        full-debug tests.
index 0bc0953..91ffb92 100644 (file)
@@ -125,7 +125,8 @@ should first define the macro <TT>GC_THREADS</tt>, and then
 include <TT>"gc.h"</tt>.  On some platforms this will redefine some
 threads primitives, e.g. to let the collector keep track of thread creation.
 <LI>
-To take advantage of fast thread-local allocation, use the following instead
+To take advantage of fast thread-local allocation in versions before 7.0,
+use the following instead
 of including <TT>gc.h</tt>:
 <PRE>
 #define GC_REDIRECT_TO_LOCAL
@@ -133,6 +134,8 @@ of including <TT>gc.h</tt>:
 </pre>
 This will cause GC_MALLOC and GC_MALLOC_ATOMIC to keep per-thread allocation
 caches, and greatly reduce the number of lock acquisitions during allocation.
+For versions after 7.0, this happens implicitly if the collector is built
+with thread-local allocation enabled.
 </ul>
 
 <H3>C++</h3>