mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
show with sharing info
This commit is contained in:
parent
a67cd8a888
commit
d2cfb5228a
1 changed files with 1 additions and 0 deletions
1
gc.c
1
gc.c
|
@ -12281,6 +12281,7 @@ rb_raw_obj_info(char *buff, const int buff_size, VALUE obj)
|
|||
}
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue