summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-14 02:26:18 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-14 02:26:18 +0000
commitd7e7f051e4ed8d0f69078f2d861d874a52ecc414 (patch)
treecf779c269e54eeb6dbcc8988e7c61ccc034dccb4 /vm_core.h
parentbe1d07ca37d58b2d5fbd34c245d1461792396d89 (diff)
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.h20
1 files changed, 1 insertions, 19 deletions
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 { \