mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
avoid a GC problem with RUBY_ALWAYS_GC= ./ruby -e ''.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0cb24bf1b9
commit
8733060106
1 changed files with 3 additions and 0 deletions
3
eval.c
3
eval.c
|
@ -10030,6 +10030,9 @@ rb_gc_abort_threads(void)
|
|||
{
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue