ruby-changes:63810
From: Koichi <ko1@a...>
Date: Tue, 1 Dec 2020 11:11:01 +0900 (JST)
Subject: [ruby-changes:63810] d2cfb5228a (master): show with sharing info
https://git.ruby-lang.org/ruby.git/commit/?id=d2cfb5228a From d2cfb5228a89678a712efd381e049391800373e1 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Tue, 1 Dec 2020 11:10:19 +0900 Subject: show with sharing info diff --git a/gc.c b/gc.c index aae05b5..3daa6a8 100644 --- a/gc.c +++ b/gc.c @@ -12281,6 +12281,7 @@ rb_raw_obj_info(char *buff, const int buff_size, VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L12281 } break; case T_STRING: { + if (STR_SHARED_P(obj)) APPENDF((BUFF_ARGS, " [shared] ")); APPENDF((BUFF_ARGS, "%.*s", str_len_no_raise(obj), RSTRING_PTR(obj))); break; } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/