From bbe909230a79d53af2bc3fde28f0ee9fa03c1bb9 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 6 Oct 2022 21:03:41 +0300 Subject: Remove GC_mark_threads variable (refactoring) * pthread_support.c [PARALLEL_MARK] (GC_mark_threads): Remove static variable. * pthread_support.c [PARALLEL_MARK] (GC_start_mark_threads_inner): Define new_thread local variable and use it in pthread_create() call instead of GC_mark_threads. * win32_threads.c [PARALLEL_MARK]: Remove comment about GC_mark_threads. --- win32_threads.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'win32_threads.c') diff --git a/win32_threads.c b/win32_threads.c index 3e5cdaf0..a45bddc8 100644 --- a/win32_threads.c +++ b/win32_threads.c @@ -1936,8 +1936,6 @@ GC_INNER void GC_get_next_stack(char *start, char *limit, # define UNSET_MARK_LOCK_HOLDER (void)0 # endif - /* GC_mark_threads[] is unused here unlike that in pthread_support.c */ - static int available_markers_m1 = 0; # ifdef GC_PTHREADS_PARAMARK -- cgit v1.2.1