From 6b534134a78e3e43c344682c3585e1abab015216 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 27 Jun 2018 09:28:09 +0000 Subject: give up insn attr handles_frame I introduced this mechanism in r62051 to speed things up. Later it was reported that the change causes problems. I searched for workarounds but nothing seemed appropriate. I hereby officially give it up. The idea to move ADD_PC around was a mistake. Fixes [Bug #14809] and [Bug #14834]. Signed-off-by: Urabe, Shyouhei git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index bf47be625a..d509e60fd3 100644 --- a/gc.c +++ b/gc.c @@ -1805,10 +1805,7 @@ rb_objspace_set_event_hook(const rb_event_flag_t event) static void gc_event_hook_body(rb_execution_context_t *ec, rb_objspace_t *objspace, const rb_event_flag_t event, VALUE data) { - /* increment PC because source line is calculated with PC-1 */ - ec->cfp->pc++; EXEC_EVENT_HOOK(ec, event, ec->cfp->self, 0, 0, 0, data); - ec->cfp->pc--; } #define gc_event_hook_available_p(objspace) ((objspace)->flags.has_hook) @@ -9955,4 +9952,3 @@ ruby_xrealloc2(void *ptr, size_t n, size_t new_size) #endif return ruby_xrealloc2_body(ptr, n, new_size); } - -- cgit v1.2.3