summaryrefslogtreecommitdiff
path: root/vm_backtrace.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 00:38:24 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 00:38:24 (GMT)
commit4f451dddeb81941a25a9ccd9dadc1a0247274e0d (patch)
tree884025c47c125926db2f8ede8bb014eaa7db9a57 /vm_backtrace.c
parent82e6c75d145224eae63aab862c213b0ed8f0daf0 (diff)
vm_backtrace.c: RB_GC_GUARD
* include/ruby/ruby.h (RB_GC_GUARD_PTR): add note. * vm_backtrace.c (backtrace_to_str_ary): use RB_GC_GUARD() instead of RB_GC_GUARD_PTR() which has no effect. (backtrace_to_location_ary): ditto. (vm_backtrace_to_ary): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_backtrace.c')
-rw-r--r--vm_backtrace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_backtrace.c b/vm_backtrace.c
index 97b38bc..c3c8d04 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -512,7 +512,7 @@ backtrace_to_str_ary(VALUE self, long lev, long n)
}
r = backtrace_collect(bt, lev, n, location_to_str_dmyarg, 0);
- RB_GC_GUARD_PTR(&self);
+ RB_GC_GUARD(self);
return r;
}
@@ -559,7 +559,7 @@ backtrace_to_location_ary(VALUE self, long lev, long n)
}
r = backtrace_collect(bt, lev, n, location_create, (void *)self);
- RB_GC_GUARD_PTR(&self);
+ RB_GC_GUARD(self);
return r;
}
@@ -770,7 +770,7 @@ vm_backtrace_to_ary(rb_thread_t *th, int argc, VALUE *argv, int lev_default, int
else {
r = backtrace_to_location_ary(btval, lev, n);
}
- RB_GC_GUARD_PTR(&btval);
+ RB_GC_GUARD(btval);
return r;
}