summaryrefslogtreecommitdiff
path: root/vm_backtrace.c
diff options
context:
space:
mode:
authortmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-27 22:48:34 (GMT)
committertmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-27 22:48:34 (GMT)
commit910cee22e9d257b5a187b26b9ddfe74e63f45583 (patch)
treead1de6e86da740a5259f027f152d1433d0dd0599 /vm_backtrace.c
parent5b529e5a3df75df05f790ff18275ed9dacf5bdd4 (diff)
* vm_backtrace.c (rb_profile_frame_classpath): do not use rb_inspect
directly, since it might have a custom implementation or show ivars. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_backtrace.c')
-rw-r--r--vm_backtrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_backtrace.c b/vm_backtrace.c
index 279a94e..541eda3 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -1298,7 +1298,7 @@ rb_profile_frame_classpath(VALUE frame)
else if (FL_TEST(klass, FL_SINGLETON)) {
klass = rb_ivar_get(klass, id__attached__);
if (!RB_TYPE_P(klass, T_CLASS))
- return rb_inspect(klass);
+ return rb_sprintf("#<%s:%p>", rb_class2name(rb_obj_class(klass)), (void*)klass);
}
return rb_class_path(klass);
}