ruby-changes:58388
From: Alan <ko1@a...>
Date: Thu, 24 Oct 2019 18:04:02 +0900 (JST)
Subject: [ruby-changes:58388] f1de438380 (master): Use CPDEBUG for debug code
https://git.ruby-lang.org/ruby.git/commit/?id=f1de438380 From f1de438380893682257b8648784a0fe7714b1f9f Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Mon, 21 Oct 2019 12:56:44 -0400 Subject: Use CPDEBUG for debug code diff --git a/compile.c b/compile.c index d0f4ce4..0440ec5 100644 --- a/compile.c +++ b/compile.c @@ -549,8 +549,7 @@ verify_list(ISEQ_ARG_DECLARE const char *info, LINK_ANCHOR *const anchor) https://github.com/ruby/ruby/blob/trunk/compile.c#L549 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) https://github.com/ruby/ruby/blob/trunk/compile.c#L568 } i += insn_len(insn); } +#endif } /* -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/