ruby-changes:64583
From: Koichi <ko1@a...>
Date: Fri, 25 Dec 2020 11:20:54 +0900 (JST)
Subject: [ruby-changes:64583] 888cf28a7e (master): define RGENGC_DEBUG_ENABLED() as 0
https://git.ruby-lang.org/ruby.git/commit/?id=888cf28a7e From 888cf28a7e3a07fc0a41688777a40910654005ad Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> 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(). diff --git a/gc.c b/gc.c index 6f726b3..f9ebf6a 100644 --- a/gc.c +++ b/gc.c @@ -378,7 +378,7 @@ static ruby_gc_params_t gc_params = { https://github.com/ruby/ruby/blob/trunk/gc.c#L378 #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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/