mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (obj_memsize_of): memsize_of(T_ZOMBIE) returns 0, not a rb_bug.
ObjectSpace.count_objects_size() uses memsize_of(T_ZOMBIE). This bug introduced at r46348. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
08580181ac
commit
b905ac81a0
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
Tue Jun 17 12:24:57 2014 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (obj_memsize_of): memsize_of(T_ZOMBIE) returns 0, not a rb_bug.
|
||||
ObjectSpace.count_objects_size() uses memsize_of(T_ZOMBIE).
|
||||
|
||||
This bug introduced at r46348.
|
||||
|
||||
Mon Jun 16 19:00:11 2014 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* test/runner.rb: failure message should be passed as an argument.
|
||||
|
|
2
gc.c
2
gc.c
|
@ -2610,7 +2610,7 @@ obj_memsize_of(VALUE obj, int use_tdata)
|
|||
break;
|
||||
|
||||
case T_ZOMBIE:
|
||||
/* fall through */
|
||||
break;
|
||||
|
||||
default:
|
||||
rb_bug("objspace/memsize_of(): unknown data type 0x%x(%p)",
|
||||
|
|
Loading…
Reference in a new issue