ruby-changes:60212
From: Koichi <ko1@a...>
Date: Thu, 27 Feb 2020 10:50:41 +0900 (JST)
Subject: [ruby-changes:60212] 18674aef0d (master): check imemo_type
https://git.ruby-lang.org/ruby.git/commit/?id=18674aef0d From 18674aef0d8199958dbda21eff5167dfc4a5de9a Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Thu, 27 Feb 2020 10:47:23 +0900 Subject: check imemo_type check imemo_type to debug http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2744755 diff --git a/vm_insnhelper.c b/vm_insnhelper.c index c6e5c67..87f785c 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -117,11 +117,18 @@ callable_class_p(VALUE klass) https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L117 static int callable_method_entry_p(const rb_callable_method_entry_t *cme) { - if (cme == NULL || callable_class_p(cme->defined_class)) { - return TRUE; + if (cme == NULL) { + return TRUE; } else { - return FALSE; + VM_ASSERT(IMEMO_TYPE_P((VALUE)cme, imemo_ment)); + + if (callable_class_p(cme->defined_class)) { + return TRUE; + } + else { + return FALSE; + } } } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/