summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-06-24 23:31:29 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-06-24 23:31:29 +0000
commiteb166d591641c4caa1a6f6f27a2fa28a1c056814 (patch)
tree221b5ffeb34d4245ce1f652472cbc3ffe7039095 /gc.c
parent652bac67c7a90b9a51fd7dd46c0d36332684f56a (diff)
downloadruby-eb166d591641c4caa1a6f6f27a2fa28a1c056814.tar.gz
ruby-eb166d591641c4caa1a6f6f27a2fa28a1c056814.tar.xz
ruby-eb166d591641c4caa1a6f6f27a2fa28a1c056814.zip
* eval.c (rb_thread_atfork): remove "fork terminates thread"
warning. [ruby-dev: * object.c (rb_obj_clone): backport FL_FINALIZE patch from 1.9. [ruby-core:02786][ruby-core:03067] * ext/socket/socket.c (sock_sockaddr): Socket#gethostbyname() should give us packed address, not struct sockaddr. [ruby-core:03053] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gc.c b/gc.c
index ce3d72645..063e5ba4b 100644
--- a/gc.c
+++ b/gc.c
@@ -1722,12 +1722,10 @@ rb_gc_copy_finalizer(dest, obj)
if (!finalizer_table) return;
if (!FL_TEST(obj, FL_FINALIZE)) return;
- if (FL_TEST(dest, FL_FINALIZE)) {
- rb_warn("copy_finalizer: discarding old finalizers");
- }
if (st_lookup(finalizer_table, obj, &table)) {
st_insert(finalizer_table, dest, table);
}
+ RBASIC(dest)->flags |= FL_FINALIZE;
}
static VALUE