summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-20 07:23:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-20 07:23:55 +0000
commite7c0a6e1d745935460a226cd5f29e2f0faff5417 (patch)
tree29840d1c3aa365cd3811d191370477c35474d37e /vm.c
parent4ab39d2202c42d3781e44ad8b8219e6e5bfa39aa (diff)
* prevent temporary objects from GC, and should not use
RSTRING_PTR() for function calls since it evaluates the argument a couple of times. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 571942565f..5db91dd6ae 100644
--- a/vm.c
+++ b/vm.c
@@ -1446,7 +1446,7 @@ rb_thread_current_status(const rb_thread_t *th)
}
else if (cfp->me->def->original_id) {
str = rb_sprintf("`%s#%s' (cfunc)",
- RSTRING_PTR(rb_class_name(cfp->me->klass)),
+ rb_class2name(cfp->me->klass),
rb_id2name(cfp->me->def->original_id));
}