From 8271da22407f4877dea16996c7d7cb85603e5bae Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 28 Oct 2017 11:11:17 +0000 Subject: 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 --- vm_trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm_trace.c') 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) { -- cgit v1.2.3