From cfca1cca99c757ac33c114ad3e9dd77ef430c0fa Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 28 Mar 2012 20:17:33 +0400 Subject: [PATCH] doc: Update README for Solaris regarding multi-threading support * doc/README.solaris2 (SOLARIS THREADS): Update. * doc/overview.html: Remove information about Solaris old-style threads support. --- doc/README.solaris2 | 8 +++++++- doc/overview.html | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/README.solaris2 b/doc/README.solaris2 index d46fe26..2f3b511 100644 --- a/doc/README.solaris2 +++ b/doc/README.solaris2 @@ -24,9 +24,15 @@ libgcc_s.so.1. Alternatively, you can configure with --disable-shared. SOLARIS THREADS: -The collector must be compiled with -DGC_THREADS to be thread safe. +Threads support is enabled by configure "--enable-threads=posix" option. +(In case of GCC compiler, multi-threading support is on by default.) +This causes the collector to be compiled with -D GC_THREADS (or +-D GC_SOLARIS_THREADS) ensuring thread safety. This assumes use of the pthread_ interface. Old style Solaris threads are no longer supported. +Thread-local allocation is now on by default. Parallel marking is on by +default starting from GC v7.3 but it could be enabled or disabled manually +by the corresponding "--enable/disable-parallel-mark" options. It is also essential that gc.h be included in files that call pthread_create, pthread_join, pthread_detach, or dlopen. gc.h macro defines these to also do diff --git a/doc/overview.html b/doc/overview.html index 0348457..8c562bf 100644 --- a/doc/overview.html +++ b/doc/overview.html @@ -104,7 +104,7 @@ Tru64, Irix and a few other operating systems. Some ports are more polished than others.

Irix pthreads, Linux threads, Win32 threads, Solaris threads -(old style and pthreads), +(pthreads only), HP/UX 11 pthreads, Tru64 pthreads, and MacOS X threads are supported in recent versions.

Separately distributed ports

-- 2.7.4