summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/object.c b/object.c
index e4ccf1b7e0..73a24c9417 100644
--- a/object.c
+++ b/object.c
@@ -93,7 +93,6 @@ rb_obj_clone(obj)
rb_raise(rb_eTypeError, "can't clone %s", rb_class2name(CLASS_OF(obj)));
}
clone = rb_obj_alloc(RBASIC(obj)->klass);
- ROBJECT(clone)->iv_tbl = 0; /* avoid GC crash */
CLONESETUP(clone,obj);
if (ROBJECT(obj)->iv_tbl) {
ROBJECT(clone)->iv_tbl = st_copy(ROBJECT(obj)->iv_tbl);
@@ -521,8 +520,6 @@ rb_mod_clone(module)
CLONESETUP(clone, module);
clone->super = RCLASS(module)->super;
- clone->iv_tbl = 0;
- clone->m_tbl = 0; /* avoid GC crashing */
if (RCLASS(module)->iv_tbl) {
clone->iv_tbl = st_copy(RCLASS(module)->iv_tbl);
}