From: hboehm Date: Wed, 24 Oct 2007 00:31:46 +0000 (+0000) Subject: 2007-10-23 Hans Boehm X-Git-Tag: gc7_1alpha2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=365bbbf0d6220758f76df4266d4cdbbfb01263d4;p=gc 2007-10-23 Hans Boehm * doc/scale.html: Reflect gc7 thread local allocation behavior. --- diff --git a/ChangeLog b/ChangeLog index 5956b18e..dc4c4ebb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2007-10-23 Hans Boehm + + * doc/scale.html: Reflect gc7 thread local allocation behavior. + +2007-10-23 Hans Boehm (really Petter Urkedal) + + * include/extra/gc.h, include/extra/gc_cpp.h: New. + * include/include.am: Install gc.h and gc_cpp.h in $(prefix)/include + again. + * Makefile.in: Regenerate. + 2007-08-15 Hans Boehm (really Samuel Thibault) * pthread_support.c (GC_thr_init): Use sysconf(_SC_NPROCESSORS_ONLN) diff --git a/doc/scale.html b/doc/scale.html index 2e70148d..59da7bcf 100644 --- a/doc/scale.html +++ b/doc/scale.html @@ -52,9 +52,11 @@ implementation of GC_malloc_many, so that free lists can be built, and memory can be cleared, by more than one thread concurrently.
  • Building the collector with -DTHREAD_LOCAL_ALLOC adds support for thread -local allocation. It does not, by itself, cause thread local allocation -to be used. It simply allows the use of the interface in -gc_local_alloc.h. +local allocation. Before GC version 7.0, it did not, by itself, cause +thread local allocation to be used. It simply allowed the use of the +interface in gc_local_alloc.h. Since version 7.0, this causes +GC_malloc, GC_malloc_atomic, and GC_gcj_malloc to be redefined to perform +thread-local allocation.

    Memory returned from thread-local allocators is completely interchangeable with that returned by the standard allocators. It may be used by other @@ -72,7 +74,8 @@ used heavily, and thus the number of short-duration lock acquisitions is greatly reduced.

    -The easiest way to switch an application to thread-local allocation is to +The easiest way to switch an application to thread-local allocation +in a pre-version-7.0 collector was to

    1. Define the macro GC_REDIRECT_TO_LOCAL, and then include the gc.h