diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2023-01-17 08:30:12 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2023-03-14 13:18:49 +0300 |
commit | bb9121184242ffd34a96abef822aee9b6021f4a0 (patch) | |
tree | ecf29bb9623ee40dce0fb18681d101cc2fa9f85c | |
parent | 86d885f9aaff26603293c3367f2a6d40644f506d (diff) | |
download | bdwgc-bb9121184242ffd34a96abef822aee9b6021f4a0.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 ea4b58a3..b2c031d2 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -687,7 +687,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(); # elif defined(PLATFORM_ANDROID) @@ -697,7 +697,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 36db9298..6d124012 100644 --- a/win32_threads.c +++ b/win32_threads.c @@ -1076,7 +1076,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 |