summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-29 14:59:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-29 14:59:55 +0000
commitfe3cba8e6fdb00b2cb50fcabe14c45463df5943f (patch)
tree4f3885dd73d3e53aff0c01d75bb0056dc328c347 /gc.c
parent6779556b23018b057236668d8a9f6cb2c0bb64e0 (diff)
* eval.c (rb_gc_mark_threads): keep 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@9759 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 19de920505..ea4d3b0078 100644
--- a/gc.c
+++ b/gc.c
@@ -1015,6 +1015,8 @@ gc_sweep(void)
st_foreach(source_filenames, sweep_source_filename, 0);
}
+ rb_gc_abort_threads();
+
freelist = 0;
final_list = deferred_final_list;
deferred_final_list = 0;