diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2023-01-17 08:30:12 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2023-03-14 11:34:34 +0300 |
commit | 7303c92c088627fde4669337df0b5d1031d031be (patch) | |
tree | 7e15cfd86aae18b917ba0caf758e8ec5943ec2c5 | |
parent | 305eee5831eaef93617c3afc2714b196c4f30b04 (diff) | |
download | bdwgc-7303c92c088627fde4669337df0b5d1031d031be.tar.gz |
Fix mistyped GC_free_inner in comment of GC_remove_all_threads_but_me
(a cherry-pick of commit 05b220b98 from 'master')
* pthread_support.c [CAN_HANDLE_FORK && (GC_DARWIN_THREADS
|| THREAD_LOCAL_ALLOC && !USE_CUSTOM_SPECIFIC)]
(GC_remove_all_threads_but_me): Rename GC_free_internal to
GC_free_inner in comments.
* win32_threads.c [CAN_HANDLE_FORK && THREAD_LOCAL_ALLOC
&& !USE_CUSTOM_SPECIFIC] (GC_remove_all_threads_but_me): Likewise.
-rw-r--r-- | pthread_support.c | 4 | ||||
-rw-r--r-- | win32_threads.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pthread_support.c b/pthread_support.c index 88c458b5..8395f897 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -774,7 +774,7 @@ STATIC void GC_remove_all_threads_but_me(void) p -> next = 0; # ifdef GC_DARWIN_THREADS /* Update thread Id after fork (it is OK to call */ - /* GC_destroy_thread_local and GC_free_internal */ + /* GC_destroy_thread_local and GC_free_inner */ /* before update). */ me -> stop_info.mach_thread = mach_thread_self(); # endif @@ -788,7 +788,7 @@ STATIC void GC_remove_all_threads_but_me(void) /* Some TLS implementations might be not fork-friendly, so */ /* we re-assign thread-local pointer to 'tlfs' for safety */ /* instead of the assertion check (again, it is OK to call */ - /* GC_destroy_thread_local and GC_free_internal before). */ + /* GC_destroy_thread_local and GC_free_inner before). */ res = GC_setspecific(GC_thread_key, &me->tlfs); if (COVERT_DATAFLOW(res) != 0) ABORT("GC_setspecific failed (in child)"); diff --git a/win32_threads.c b/win32_threads.c index 8b3e09e6..5ae72fb8 100644 --- a/win32_threads.c +++ b/win32_threads.c @@ -1120,7 +1120,7 @@ GC_API void * GC_CALL GC_call_with_gc_active(GC_fn_type fn, # if defined(THREAD_LOCAL_ALLOC) && !defined(USE_CUSTOM_SPECIFIC) /* For Cygwin, we need to re-assign thread-local pointer to */ /* 'tlfs' (it is OK to call GC_destroy_thread_local and */ - /* GC_free_internal before this action). */ + /* GC_free_inner before this action). */ if (GC_setspecific(GC_thread_key, &me->tlfs) != 0) ABORT("GC_setspecific failed (in child)"); # endif |