summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2023-03-10 07:59:13 +0300
committerIvan Maidanski <ivmai@mail.ru>2023-03-10 12:00:33 +0300
commitcf0689ec6ec2e5e9b975a2c3626fef42006b7d62 (patch)
tree49694421c5b9419159a89bc617137a6d271f6737 /include
parent5a8c02852532169ad81a87b553dc5fb3142d9e61 (diff)
downloadbdwgc-cf0689ec6ec2e5e9b975a2c3626fef42006b7d62.tar.gz
Move platform-dependent getspecific() call to a dedicated function
(refactoring) * include/private/thread_local_alloc.h: Reformat comment. * pthread_stop_world.c [NACL] (GC_nacl_gc_thread_sel): Add TODO item. * pthread_support.c (GC_thread_is_registered): Likewise. * thread_local_alloc.c [THREAD_LOCAL_ALLOC] (GC_get_tlfs): New STATIC function (move part of code from GC_malloc_kind). * thread_local_alloc.c [THREAD_LOCAL_ALLOC] (GC_malloc_kind): Use GC_get_tlfs().
Diffstat (limited to 'include')
-rw-r--r--include/private/thread_local_alloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/private/thread_local_alloc.h b/include/private/thread_local_alloc.h
index 12048209..aaf14213 100644
--- a/include/private/thread_local_alloc.h
+++ b/include/private/thread_local_alloc.h
@@ -15,7 +15,7 @@
/* This is the interface for thread-local allocation, whose */
/* implementation is mostly thread-library-independent. */
/* Here we describe only the interface that needs to be known */
-/* and invoked from the thread support layer; the actual */
+/* and invoked from the thread support layer; the actual */
/* implementation also exports GC_malloc and friends, which */
/* are declared in gc.h. */