summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-19 14:36:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-19 14:36:18 +0000
commit22c8dcffe159e845d6dc0b2a8c3998db3b9cc3e0 (patch)
treeae8af741d2cd4bfd8e141353f6c453f13189aeb3 /gc.c
parent263a0f7f161f3dbf46a2af1d440fa570a66bb5bf (diff)
debug.c: rgengc debug option
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 5ee5adbdb3..68b3948d6c 100644
--- a/gc.c
+++ b/gc.c
@@ -223,6 +223,11 @@ static ruby_gc_params_t gc_params = {
#ifndef RGENGC_DEBUG
#define RGENGC_DEBUG 0
#endif
+#if RGENGC_DEBUG < 0
+#undef RGENGC_DEBUG
+#define RGENGC_DEBUG ruby_rgengc_debug
+#endif
+int ruby_rgengc_debug;
/* RGENGC_CHECK_MODE
* 0: disable all assertions