From 08f7159e3743e51f1e9183171e7a4ce550fd4d03 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 14 Jun 2017 02:26:18 +0000 Subject: remove OPT_CALL_CFUNC_WITHOUT_FRAME. * vm_core.h (OPT_CALL_CFUNC_WITHOUT_FRAME): removed because nobody use it. This optimization tries to call C-methods without pushing VM frames, however no big improvements compare with this complexity. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index f4301b7fe0..bb2ca597a4 100644 --- a/vm_core.h +++ b/vm_core.h @@ -1542,25 +1542,7 @@ extern rb_vm_t *ruby_current_vm; extern rb_event_flag_t ruby_vm_event_flags; #define GET_VM() ruby_current_vm - -#ifndef OPT_CALL_CFUNC_WITHOUT_FRAME -#define OPT_CALL_CFUNC_WITHOUT_FRAME 0 -#endif - -#define GET_THREAD() vm_thread_with_frame(ruby_current_thread) -#if OPT_CALL_CFUNC_WITHOUT_FRAME -static inline rb_thread_t * -vm_thread_with_frame(rb_thread_t *th) -{ - if (UNLIKELY(th->passed_ci != 0)) { - void rb_vm_call_cfunc_push_frame(rb_thread_t *th); - rb_vm_call_cfunc_push_frame(th); - } - return th; -} -#else -#define vm_thread_with_frame(th) (th) -#endif +#define GET_THREAD() ruby_current_thread #define rb_thread_set_current_raw(th) (void)(ruby_current_thread = (th)) #define rb_thread_set_current(th) do { \ -- cgit v1.2.3