diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-14 02:26:18 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-14 02:26:18 +0000 |
commit | 08f7159e3743e51f1e9183171e7a4ce550fd4d03 (patch) | |
tree | cf779c269e54eeb6dbcc8988e7c61ccc034dccb4 /vm_core.h | |
parent | 0e075d64fa0252da956cf05a10ea92a23c63a4ed (diff) | |
download | ruby-08f7159e3743e51f1e9183171e7a4ce550fd4d03.tar.gz |
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
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -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 { \ |