diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-29 16:19:44 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-29 16:19:44 +0000 |
commit | ea88f1d35ecc76890ad265165ac252d5ac0954e0 (patch) | |
tree | 1692c4f6e5a29cb4d560e9bc8cb67b817eda3655 /eval.c | |
parent | f7314889cf8b4c617e73a06fc6c94fb5b3bf34ab (diff) |
avoid a GC problem with RUBY_ALWAYS_GC= ./ruby -e ''.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,6 +1,6 @@ /********************************************************************** - eval.c - + eval.e - $Author$ $Date$ @@ -10015,6 +10015,9 @@ rb_gc_abort_threads() { rb_thread_t th; + if (!main_thread) + return; + FOREACH_THREAD_FROM(main_thread, th) { if (FL_TEST(th->thread, FL_MARK)) continue; if (th->status == THREAD_STOPPED) { |