ruby-changes:31364
From: tmm1 <ko1@a...>
Date: Mon, 28 Oct 2013 07:48:40 +0900 (JST)
Subject: [ruby-changes:31364] tmm1:r43443 (trunk): * vm_backtrace.c (rb_profile_frame_classpath): do not use rb_inspect
tmm1 2013-10-28 07:48:34 +0900 (Mon, 28 Oct 2013) New Revision: 43443 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43443 Log: * vm_backtrace.c (rb_profile_frame_classpath): do not use rb_inspect directly, since it might have a custom implementation or show ivars. Modified files: trunk/ChangeLog trunk/vm_backtrace.c Index: ChangeLog =================================================================== --- ChangeLog (revision 43442) +++ ChangeLog (revision 43443) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Oct 28 07:47:32 2013 Aman Gupta <ruby@t...> + + * 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@t...> * vm_backtrace.c (rb_profile_frame_classpath): handle singleton Index: vm_backtrace.c =================================================================== --- vm_backtrace.c (revision 43442) +++ vm_backtrace.c (revision 43443) @@ -1298,7 +1298,7 @@ rb_profile_frame_classpath(VALUE frame) https://github.com/ruby/ruby/blob/trunk/vm_backtrace.c#L1298 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); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/