1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
tmm1 2013-10-27 22:48:34 +00:00
parent 5b529e5a3d
commit 910cee22e9
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Oct 28 07:47:32 2013 Aman Gupta <ruby@tmm1.net>
* vm_backtrace.c (rb_profile_frame_classpath): do not use rb_inspect
directly, since it might have a custom implementation or show ivars.
Mon Oct 28 04:10:41 2013 Aman Gupta <ruby@tmm1.net>
* vm_backtrace.c (rb_profile_frame_classpath): handle singleton

View file

@ -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);
}