aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2019-10-21 12:56:44 -0400
committer卜部昌平 <shyouhei@ruby-lang.org>2019-10-24 18:03:42 +0900
commitf1de438380893682257b8648784a0fe7714b1f9f (patch)
treebd4f7fd89ef147773d7de355a6d5d078ba67743c /compile.c
parent89e7997622038f82115f34dbb4ea382e02bed163 (diff)
downloadruby-f1de438380893682257b8648784a0fe7714b1f9f.tar.gz
Use CPDEBUG for debug code
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index d0f4ce406e..0440ec5fbc 100644
--- a/compile.c
+++ b/compile.c
@@ -549,8 +549,7 @@ verify_list(ISEQ_ARG_DECLARE const char *info, LINK_ANCHOR *const anchor)
static void
verify_call_cache(rb_iseq_t *iseq)
{
- return; /* comment out to enable */
-
+#if CPDEBUG
VALUE *original = rb_iseq_original_iseq(iseq);
size_t i = 0;
while (i < iseq->body->iseq_size) {
@@ -569,6 +568,7 @@ verify_call_cache(rb_iseq_t *iseq)
}
i += insn_len(insn);
}
+#endif
}
/*