diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-17 01:23:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-17 01:23:50 +0000 |
commit | 0702b5797e9b4f724b3c4f16330f62fbc9f41b8b (patch) | |
tree | 5023ffc658006acbb24e7e78531bc91045b584a3 /vm_args.c | |
parent | 1bc8df9eabc4eedaca9efb772a4761956cb8ac5a (diff) | |
download | ruby-0702b5797e9b4f724b3c4f16330f62fbc9f41b8b.tar.gz |
vm_backtrace.c: backtrace functions per threads
* vm_backtrace.c (rb_threadptr_backtrace_object): rename and
extern.
* vm_backtrace.c (rb_threadptr_backtrace_str_ary): rename as
threadptr since the parameter is rb_thread_t*.
* vm_backtrace.c (rb_threadptr_backtrace_location_ary): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_args.c')
-rw-r--r-- | vm_args.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -706,11 +706,11 @@ raise_argument_error(rb_thread_t *th, const rb_iseq_t *iseq, const VALUE exc) vm_push_frame(th, iseq, VM_FRAME_MAGIC_DUMMY | VM_ENV_FLAG_LOCAL, Qnil /* self */, VM_BLOCK_HANDLER_NONE /* specval*/, Qfalse /* me or cref */, iseq->body->iseq_encoded, th->cfp->sp, 0, 0 /* stack_max */); - at = rb_vm_backtrace_object(); + at = rb_threadptr_backtrace_object(th); rb_vm_pop_frame(th); } else { - at = rb_vm_backtrace_object(); + at = rb_threadptr_backtrace_object(th); } rb_ivar_set(exc, idBt_locations, at); |