Skip to content

Commit

Permalink
define RGENGC_DEBUG_ENABLED() as 0
Browse files Browse the repository at this point in the history
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().
  • Loading branch information
ko1 committed Dec 25, 2020
1 parent 1ba77ff commit 888cf28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 888cf28

Please sign in to comment.