aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-17 01:23:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-17 01:23:50 +0000
commit0702b5797e9b4f724b3c4f16330f62fbc9f41b8b (patch)
tree5023ffc658006acbb24e7e78531bc91045b584a3 /eval.c
parent1bc8df9eabc4eedaca9efb772a4761956cb8ac5a (diff)
downloadruby-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 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index a31dc7107d..f3c151a130 100644
--- a/eval.c
+++ b/eval.c
@@ -516,7 +516,7 @@ setup_exception(rb_thread_t *th, int tag, volatile VALUE mesg, VALUE cause)
VALUE at;
if (sysstack_error_p(mesg)) {
if (NIL_P(rb_attr_get(mesg, idBt))) {
- at = rb_vm_backtrace_object();
+ at = rb_threadptr_backtrace_object(th);
rb_ivar_set(mesg, idBt, at);
rb_ivar_set(mesg, idBt_locations, at);
}
@@ -530,7 +530,7 @@ setup_exception(rb_thread_t *th, int tag, volatile VALUE mesg, VALUE cause)
if (rb_threadptr_set_raised(th)) goto fatal;
bt = rb_get_backtrace(mesg);
if (NIL_P(bt)) {
- at = rb_vm_backtrace_object();
+ at = rb_threadptr_backtrace_object(th);
if (OBJ_FROZEN(mesg)) {
mesg = rb_obj_dup(mesg);
}