aboutsummaryrefslogtreecommitdiffstats
path: root/vm_trace.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 11:11:17 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 11:11:17 +0000
commit8271da22407f4877dea16996c7d7cb85603e5bae (patch)
treebcee4f074ee8932693f483f7e63722b42b488009 /vm_trace.c
parentc3ed9c0bd5aac18de676dcf0b3b98eec6dc47c0f (diff)
downloadruby-8271da22407f4877dea16996c7d7cb85603e5bae.tar.gz
rename a function.
* vm.c (rb_thread_method_id_and_class): rename to rb_ec_frame_method_id_and_class() and accepts `ec` instead of `th`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_trace.c')
-rw-r--r--vm_trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_trace.c b/vm_trace.c
index 23a6e21a41..41051a5e64 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -598,10 +598,10 @@ call_trace_func(rb_event_flag_t event, VALUE proc, VALUE self, ID id, VALUE klas
VALUE eventname = rb_str_new2(get_event_name(event));
VALUE filename = srcfile ? rb_str_new2(srcfile) : Qnil;
VALUE argv[6];
- rb_thread_t *th = GET_THREAD();
+ const rb_execution_context_t *ec = GET_EC();
if (!klass) {
- rb_thread_method_id_and_class(th, &id, 0, &klass);
+ rb_ec_frame_method_id_and_class(ec, &id, 0, &klass);
}
if (klass) {