From 888cf28a7e3a07fc0a41688777a40910654005ad Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Fri, 25 Dec 2020 11:10:29 +0900 Subject: define RGENGC_DEBUG_ENABLED() as 0 on RUBY_DEVEL==0 and !HAVE_VA_ARGS_MACRO. gc_report() is always enabled on such configuration (maybe it is a bug) so disable RGENGC_DEBUG_ENABLED(). --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc.c b/gc.c index 6f726b3ca2..f9ebf6a937 100644 --- a/gc.c +++ b/gc.c @@ -378,7 +378,7 @@ static ruby_gc_params_t gc_params = { #if RGENGC_DEBUG < 0 && !defined(_MSC_VER) # define RGENGC_DEBUG_ENABLED(level) (-(RGENGC_DEBUG) >= (level) && ruby_rgengc_debug >= (level)) #else -# define RGENGC_DEBUG_ENABLED(level) ((RGENGC_DEBUG) >= (level)) +# define RGENGC_DEBUG_ENABLED(level) 0 #endif int ruby_rgengc_debug; -- cgit v1.2.1