зеркало из https://github.com/github/ruby.git
* ext/objspace/objspace_dump.c (dump_object): use STR_SHARED_P()
instead of removed STR_NOCAPA_P() macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
1ccaa4756a
Коммит
d76b382683
|
@ -1,3 +1,8 @@
|
|||
Wed Feb 5 14:40:16 2014 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* ext/objspace/objspace_dump.c (dump_object): use STR_SHARED_P()
|
||||
instead of removed STR_NOCAPA_P() macro.
|
||||
|
||||
Wed Feb 5 13:51:33 2014 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* internal.h, vm_core.h: move LIKELY/UNLIKELY/UNINITIALIZED_VAR()
|
||||
|
|
|
@ -182,7 +182,7 @@ dump_object(VALUE obj, struct dump_config *dc)
|
|||
dump_append(dc, ", \"shared\":true");
|
||||
else {
|
||||
dump_append(dc, ", \"bytesize\":%ld", RSTRING_LEN(obj));
|
||||
if (!STR_EMBED_P(obj) && !STR_NOCAPA_P(obj) && (long)rb_str_capacity(obj) != RSTRING_LEN(obj))
|
||||
if (!STR_EMBED_P(obj) && !STR_SHARED_P(obj) && (long)rb_str_capacity(obj) != RSTRING_LEN(obj))
|
||||
dump_append(dc, ", \"capacity\":%ld", rb_str_capacity(obj));
|
||||
|
||||
if (is_ascii_string(obj)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче