diff options
author | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-08 02:46:19 +0000 |
---|---|---|
committer | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-08 02:46:19 +0000 |
commit | 94fd32b80a585750427836a1e22d05c0ee3d09ad (patch) | |
tree | c5955ea8e187958c6c22039031681ef3d944ecc0 | |
parent | 6e9a14aabeceb169c789ee56647a047834267b5d (diff) | |
download | ruby-94fd32b80a585750427836a1e22d05c0ee3d09ad.tar.gz |
* gc.c (slot_sweep): add a assertion instead of a debug print.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gc.c | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Sun Jan 8 11:43:05 2012 Narihiro Nakamura <authornari@gmail.com> + + * gc.c (slot_sweep): add a assertion instead of a debug print. + Sun Jan 8 01:18:19 2012 Ayumu AIZAWA <ayumu.aizawa@gmail.com> * test/-ext-/old_thread_select/test_old_thread_select.rb: @@ -2176,9 +2176,7 @@ slot_sweep(rb_objspace_t *objspace, struct heaps_slot *sweep_slot) } p->as.free.next = deferred_final_list; deferred_final_list = p; - if (BUILTIN_TYPE(p) != T_ZOMBIE) { - fprintf(stderr, "NOT T_ZOMBIE!!\n"); - } + assert(BUILTIN_TYPE(p) == T_ZOMBIE); final_num++; } else { |