summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2015-11-17 11:39:29 +0300
committerIvan Maidanski <ivmai@mail.ru>2015-11-18 00:46:07 +0300
commit02528757f439dfc5750e28fb3e5794303ccd21f9 (patch)
tree565c2ef0a89a0f4bde59b3e65ce92e35e97026e0 /doc
parent30702c2aa0f57ad3cf89226c8fece53bed3de30f (diff)
downloadbdwgc-02528757f439dfc5750e28fb3e5794303ccd21f9.tar.gz
Allow specific TLS attributes for GC_thread_key
* doc/README.macros (GC_ATTR_TLS_FAST): Document. * include/private/thread_local_alloc.h (GC_ATTR_TLS_FAST): New macro (empty by default). * include/private/thread_local_alloc.h (GC_thread_key): Use GC_ATTR_TLS_FAST. * thread_local_alloc.c (GC_thread_key): Likewise.
Diffstat (limited to 'doc')
-rw-r--r--doc/README.macros3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/README.macros b/doc/README.macros
index 09dedcf8..c3d27437 100644
--- a/doc/README.macros
+++ b/doc/README.macros
@@ -394,6 +394,9 @@ USE_COMPILER_TLS Causes thread local allocation to use
default in HP/UX. It may help performance on recent Linux installations.
(It failed for me on RedHat 8, but appears to work on RedHat 9.)
+GC_ATTR_TLS_FAST Use specific attributes for GC_thread_key like
+ __attribute__((tls_model("local-exec"))).
+
PARALLEL_MARK Allows the marker to run in multiple threads. Recommended
for multiprocessors.