show with sharing info

This commit is contained in:
Koichi Sasada 2020-12-01 11:10:19 +09:00
parent a67cd8a888
commit d2cfb5228a
1 changed files with 1 additions and 0 deletions

1
gc.c
View File

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