summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-14 09:01:12 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-14 09:01:12 +0000
commite5731864074cc642c2b4e77d74334ca2b72302d8 (patch)
tree44beb4f72190f252712644ac2a364abbe3d715b5 /ext
parentdccf9e0c45f1f450d28ba0700dbb459247ba9f9d (diff)
* 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/trunk@28986 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 65fa201d46..58a8e61d75 100644
--- a/ext/objspace/objspace.c
+++ b/ext/objspace/objspace.c
@@ -138,6 +138,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);