ruby-changes:71938
From: Koichi <ko1@a...>
Date: Tue, 24 May 2022 16:28:25 +0900 (JST)
Subject: [ruby-changes:71938] 62e08d4b84 (master): remove `DEBUG_OUT()` macro
https://git.ruby-lang.org/ruby.git/commit/?id=62e08d4b84 From 62e08d4b844a3f4f7a6dadc6083cd0585485931b Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Tue, 24 May 2022 15:06:30 +0900 Subject: remove `DEBUG_OUT()` macro This macro is no longer used ([GH-5933]). --- thread_none.c | 2 -- thread_pthread.c | 12 ------------ thread_win32.c | 6 ------ 3 files changed, 20 deletions(-) diff --git a/thread_none.c b/thread_none.c index b57e082543..cf4658e571 100644 --- a/thread_none.c +++ b/thread_none.c @@ -15,8 +15,6 @@ https://github.com/ruby/ruby/blob/trunk/thread_none.c#L15 #include <time.h> -#define DEBUG_OUT() (void)(0); - #define TIME_QUANTUM_MSEC (100) #define TIME_QUANTUM_USEC (TIME_QUANTUM_MSEC * 1000) #define TIME_QUANTUM_NSEC (TIME_QUANTUM_USEC * 1000) diff --git a/thread_pthread.c b/thread_pthread.c index 2108431456..451f47e07f 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -51,18 +51,6 @@ https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L51 # define USE_EVENTFD (0) #endif -#ifdef NON_SCALAR_THREAD_ID - #define DEBUG_OUT_NT_ID (NULL) -#else - #define DEBUG_OUT_NT_ID ((void *)pthread_self()) -#endif - -#define DEBUG_OUT() \ - pthread_mutex_lock(&debug_mutex); \ - printf(POSITION_FORMAT"%"PRI_THREAD_ID" - %s" POSITION_ARGS, DEBUG_OUT_NT_ID, buf); \ - fflush(stdout); \ - pthread_mutex_unlock(&debug_mutex); - #if defined(SIGVTALRM) && !defined(__CYGWIN__) && !defined(__EMSCRIPTEN__) # define USE_UBF_LIST 1 #endif diff --git a/thread_win32.c b/thread_win32.c index ec5d336589..a8c9b94cd7 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -25,12 +25,6 @@ https://github.com/ruby/ruby/blob/trunk/thread_win32.c#L25 #define ubf_timer_disarm() do {} while (0) #define ubf_list_atfork() do {} while (0) -#define DEBUG_OUT() \ - WaitForSingleObject(&debug_mutex, INFINITE); \ - printf(POSITION_FORMAT"%#lx - %s" POSITION_ARGS, GetCurrentThreadId(), buf); \ - fflush(stdout); \ - ReleaseMutex(&debug_mutex); - static volatile DWORD ruby_native_thread_key = TLS_OUT_OF_INDEXES; static int w32_wait_events(HANDLE *events, int count, DWORD timeout, rb_thread_t *th); -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/