From f1de438380893682257b8648784a0fe7714b1f9f Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Mon, 21 Oct 2019 12:56:44 -0400 Subject: Use CPDEBUG for debug code --- compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compile.c') 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 } /* -- cgit v1.2.3