diff --git a/ChangeLog b/ChangeLog index 7812570335..edfebede38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 5 14:40:16 2014 Koichi Sasada + + * 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 * internal.h, vm_core.h: move LIKELY/UNLIKELY/UNINITIALIZED_VAR() diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c index 8f95a49c56..6b3bf44489 100644 --- a/ext/objspace/objspace_dump.c +++ b/ext/objspace/objspace_dump.c @@ -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)) {