From 967040ba59799e6b7891168ffbf37cc646988d84 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Sun, 13 Dec 2020 05:55:18 +0900 Subject: Introduce negative method cache pCMC doesn't have negative method cache so this patch implements it. --- thread.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'thread.c') diff --git a/thread.c b/thread.c index e910615b84..e60d71f75a 100644 --- a/thread.c +++ b/thread.c @@ -5671,6 +5671,8 @@ rb_resolve_me_location(const rb_method_entry_t *me, VALUE resolved_location[5]) { VALUE path, beg_pos_lineno, beg_pos_column, end_pos_lineno, end_pos_column; + if (!me->def) return NULL; // negative cme + retry: switch (me->def->type) { case VM_METHOD_TYPE_ISEQ: { -- cgit v1.2.3