diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2023-01-17 08:30:12 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2023-03-15 07:46:26 +0300 |
commit | 22b849e087a198f1a2541e738e912d8e6ddea893 (patch) | |
tree | 21e2ae2c4e2b9774596985f78e8a972fd0f77ed4 | |
parent | 0fd2cb6f1243652905ee89eac89a8627a3b3f019 (diff) | |
download | bdwgc-22b849e087a198f1a2541e738e912d8e6ddea893.tar.gz |
Fix mistyped GC_free_inner in comment of GC_remove_all_threads_but_me
(a cherry-pick of commit 1bbd7b59e from 'release-7_6')
* 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 72e3250d..5b982239 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -635,7 +635,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 @@ -643,7 +643,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). */ if (GC_setspecific(GC_thread_key, &me->tlfs) != 0) ABORT("GC_setspecific failed (in child)"); # endif diff --git a/win32_threads.c b/win32_threads.c index 17765128..2f23ee59 100644 --- a/win32_threads.c +++ b/win32_threads.c @@ -1029,7 +1029,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 |