summaryrefslogtreecommitdiff
path: root/darwin_stop_world.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-10-06 07:41:37 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-10-06 15:23:14 +0300
commitbae5b7355f1cb1eef34a59f96991cc0b011d6584 (patch)
tree3d820767cc555a22c15e42fb3b94e77d34739b68 /darwin_stop_world.c
parent73bd122b9fe44f94b9f85652ecfb5644d6020590 (diff)
downloadbdwgc-bae5b7355f1cb1eef34a59f96991cc0b011d6584.tar.gz
Move GC_NO_THREADS_DISCOVERY definition to gcconfig.h
(refactoring) * darwin_stop_world.c (GC_use_threads_discovery): Do not check DARWIN_DONT_PARSE_STACK. * include/private/gcconfig.h [!GC_NO_THREADS_DISCOVERY] (GC_NO_THREADS_DISCOVERY): Define macro (where the mode is unsupported); move comment from win32_threads.c. * include/private/gcconfig.h [GC_DISCOVER_TASK_THREADS && GC_NO_THREADS_DISCOVERY && !CPPCHECK]: Issue error. * win32_threads.c: Replace ((GC_DLL||GC_INSIDE_DLL) && !NO_CRT && !GC_NO_THREADS_DISCOVERY && !MSWINCE && !THREAD_LOCAL_ALLOC && !GC_PTHREADS) with !GC_NO_THREADS_DISCOVERY.
Diffstat (limited to 'darwin_stop_world.c')
-rw-r--r--darwin_stop_world.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/darwin_stop_world.c b/darwin_stop_world.c
index c1dfe7cf..5291a5a4 100644
--- a/darwin_stop_world.c
+++ b/darwin_stop_world.c
@@ -118,7 +118,7 @@ GC_INNER ptr_t GC_FindTopOfStack(unsigned long stack_start)
/* GC_INIT() (or, at least, before going multi-threaded). Deprecated. */
GC_API void GC_CALL GC_use_threads_discovery(void)
{
-# if defined(GC_NO_THREADS_DISCOVERY) || defined(DARWIN_DONT_PARSE_STACK)
+# ifdef GC_NO_THREADS_DISCOVERY
ABORT("Darwin task-threads-based stop and push unsupported");
# else
# ifndef GC_ALWAYS_MULTITHREADED