summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-29 15:00:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-29 15:00:15 +0000
commitdbbc1821db4919a0ca87824c13a7f7fe476797c3 (patch)
treeb40d909e049efadc30adbde39b6d62abc65f8b0c /gc.c
parent6bcfa40b19a6b2f61772a34e33878b09afa3699e (diff)
downloadruby-dbbc1821db4919a0ca87824c13a7f7fe476797c3.tar.gz
ruby-dbbc1821db4919a0ca87824c13a7f7fe476797c3.tar.xz
ruby-dbbc1821db4919a0ca87824c13a7f7fe476797c3.zip
* eval.c (rb_gc_mark_threads): leave unmarked threads which won't wake
up alone, and mark threads in the loading table. [ruby-dev:28154] * eval.c (rb_gc_abort_threads), gc.c (gc_sweep): kill unmarked threads. [ruby-dev:28172] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 7c8324cf6..e64499262 100644
--- a/gc.c
+++ b/gc.c
@@ -1057,6 +1057,8 @@ gc_sweep()
st_foreach(source_filenames, sweep_source_filename, 0);
}
+ rb_gc_abort_threads();
+
freelist = 0;
final_list = deferred_final_list;
deferred_final_list = 0;