summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-02 17:34:51 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-02 17:34:51 +0000
commit90373dadfb1111420464d1c6fb80e83cdffe901d (patch)
tree36d51d540615a0d5cec0d3869a23191c76bd137b
parentc291516f1400e04445611a6ce382b67e6baae427 (diff)
* gc.c (obj_info): show T_STRING more details.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--gc.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 27052bd..ff703ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Nov 3 02:33:43 2014 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c (obj_info): show T_STRING more details.
+
Sun Nov 2 01:30:32 2014 Tanaka Akira <akr@fsij.org>
* test/openssl/test_ssl.rb: Don't ignore errors on listener threads,
diff --git a/gc.c b/gc.c
index d7ba2ad..2139fd5 100644
--- a/gc.c
+++ b/gc.c
@@ -8388,6 +8388,10 @@ obj_info(VALUE obj)
C(ARY_SHARED_P(obj), "S"),
(int)RARRAY_LEN(obj));
break;
+ case T_STRING: {
+ snprintf(buff, OBJ_INFO_BUFFERS_SIZE, "%s %s", buff, RSTRING_PTR(obj));
+ break;
+ }
case T_CLASS: {
VALUE class_path = rb_class_path_cached(obj);
if (!NIL_P(class_path)) {