diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 11:11:17 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 11:11:17 +0000 |
commit | 2317b5da2ae2bab490c91773dad27115d3342bea (patch) | |
tree | bcee4f074ee8932693f483f7e63722b42b488009 /vm_trace.c | |
parent | 6d803d4391a27708903bbd12fb6fdb3e865c3a8e (diff) | |
download | ruby-2317b5da2ae2bab490c91773dad27115d3342bea.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.c | 4 |
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) { |