ruby-changes:59054
From: Jeremy <ko1@a...>
Date: Wed, 4 Dec 2019 00:28:02 +0900 (JST)
Subject: [ruby-changes:59054] 5c2c396685 (master): Check interrupts before starting thread
https://git.ruby-lang.org/ruby.git/commit/?id=5c2c396685 From 5c2c3966851ed074eb468ad36d8d75e53b8eab6c Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Sun, 25 Aug 2019 12:09:19 -0700 Subject: Check interrupts before starting thread Fixes a hang when Thread.new calls Thread.new in a loop. Fixes [Bug #13688] diff --git a/thread.c b/thread.c index 9bc2a18..d1bf612 100644 --- a/thread.c +++ b/thread.c @@ -693,6 +693,7 @@ thread_do_start(rb_thread_t *th) https://github.com/ruby/ruby/blob/trunk/thread.c#L693 } rb_adjust_argv_kw_splat(&args_len, &args_ptr, &kw_splat); + vm_check_ints_blocking(th->ec); th->value = rb_vm_invoke_proc(th->ec, proc, args_len, args_ptr, kw_splat, VM_BLOCK_HANDLER_NONE); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/