summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-23 12:50:53 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-23 12:50:53 +0000
commit1e90b4a852bc8c3211ca673cf7230ce824460062 (patch)
tree2ad7db650e5a884fb2921a700e2ff7bac99c6ef3 /ext
parentd9cd722638146ace80396e32a0d74a42893a8015 (diff)
merges r28986 from trunk into ruby_1_9_2. fixes [ruby-core:32667]
-- * test/objspace/test_objspace.rb: added test for objspace. * ext/objspace/objspace.c: considers T_ZOMBIE by lazy sweep GC. * gc.c: considers that dsize was 0. [ruby-dev:42022] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@29570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/objspace/objspace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c
index 817380f83c..ebca2f8487 100644
--- a/ext/objspace/objspace.c
+++ b/ext/objspace/objspace.c
@@ -141,6 +141,9 @@ memsize_of(VALUE obj)
}
break;
+ case T_ZOMBIE:
+ break;
+
default:
rb_bug("objspace/memsize_of(): unknown data type 0x%x(%p)",
BUILTIN_TYPE(obj), (void*)obj);