зеркало из https://github.com/github/ruby.git
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().
This commit is contained in:
Родитель
1ba77ff8aa
Коммит
888cf28a7e
2
gc.c
2
gc.c
|
@ -378,7 +378,7 @@ static ruby_gc_params_t gc_params = {
|
||||||
#if RGENGC_DEBUG < 0 && !defined(_MSC_VER)
|
#if RGENGC_DEBUG < 0 && !defined(_MSC_VER)
|
||||||
# define RGENGC_DEBUG_ENABLED(level) (-(RGENGC_DEBUG) >= (level) && ruby_rgengc_debug >= (level))
|
# define RGENGC_DEBUG_ENABLED(level) (-(RGENGC_DEBUG) >= (level) && ruby_rgengc_debug >= (level))
|
||||||
#else
|
#else
|
||||||
# define RGENGC_DEBUG_ENABLED(level) ((RGENGC_DEBUG) >= (level))
|
# define RGENGC_DEBUG_ENABLED(level) 0
|
||||||
#endif
|
#endif
|
||||||
int ruby_rgengc_debug;
|
int ruby_rgengc_debug;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче