summaryrefslogtreecommitdiff
path: root/os_dep.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-05-30 23:38:44 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-05-30 23:38:44 +0300
commitb8cb5a63e65e17c5adb9f4fcccd615200662ced8 (patch)
tree9dbaa713d38bc17249d1e9de181018188036473b /os_dep.c
parent6bc265c7d5d0352eb69f7d375b62b1f5efd11dc0 (diff)
downloadbdwgc-b8cb5a63e65e17c5adb9f4fcccd615200662ced8.tar.gz
Refine comments in code regarding DllMain-based threads registration
* include/gc/gc.h (GC_use_threads_discovery): Refine comment (mention GC_register_my_thread and GC_init). * os_dep.c [MSWIN32 || MSWINCE] (GC_get_stack_base): Add comment about the GC lock. * win32_threads.c (GC_CreateThread): Add comment about GC_init_parallel if GC_win32_dll_threads set by GC_use_threads_discovery(). * win32_threads.c [!GC_PTHREADS && !GC_NO_THREADS_DISCOVERY] (GC_DllMain): Add more comments for DLL_THREAD_ATTACH case.
Diffstat (limited to 'os_dep.c')
-rw-r--r--os_dep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os_dep.c b/os_dep.c
index 306bf1c3..59047092 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -781,6 +781,7 @@ GC_INNER size_t GC_page_size = 0;
return buf.RegionSize;
}
+ /* Should not acquire the GC lock as it is used by GC_DllMain. */
GC_API int GC_CALL GC_get_stack_base(struct GC_stack_base *sb)
{
ptr_t trunc_sp;