repo.or.cz
/
ruby.git
/
commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
a67cd8a
)
show with sharing info
author
Koichi Sasada
<
[email protected]
>
Tue, 1 Dec 2020 02:10:19 +0000
(1 11:10 +0900)
committer
Koichi Sasada
<
[email protected]
>
Tue, 1 Dec 2020 02:10:19 +0000
(1 11:10 +0900)
gc.c
patch
|
blob
|
blame
|
history
diff --git
a/gc.c
b/gc.c
index
aae05b5
..
3daa6a8
100644
(file)
--- a/
gc.c
+++ b/
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;
}