summaryrefslogtreecommitdiff
path: root/vm_backtrace.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 13:19:53 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 13:19:53 (GMT)
commite80ef4e6ce746d4fed988581a9dd4b5ef6181c22 (patch)
treea8b18e5403c2b7a0669cdee8fa8befce95670e0a /vm_backtrace.c
parenta288b87c4c4469b98d75125d3f24eb904d02ca28 (diff)
use `GET_VM()` directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_backtrace.c')
-rw-r--r--vm_backtrace.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/vm_backtrace.c b/vm_backtrace.c
index a0815f1..a10f848 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -331,8 +331,7 @@ location_to_str(rb_backtrace_location_t *loc)
lineno = location_lineno(loc->body.cfunc.prev_loc);
}
else {
- rb_thread_t *th = GET_THREAD();
- file = th->vm->progname;
+ file = GET_VM()->progname;
lineno = INT2FIX(0);
}
name = rb_id2str(loc->body.cfunc.mid);
@@ -674,9 +673,7 @@ static void
oldbt_init(void *ptr, size_t dmy)
{
struct oldbt_arg *arg = (struct oldbt_arg *)ptr;
- rb_thread_t *th = GET_THREAD();
-
- arg->filename = th->vm->progname;
+ arg->filename = GET_VM()->progname;
arg->lineno = 0;
}