mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Explicit failure in VM_CHECK_MODE when failing to create timer thread
"warning: pthread_create failed for timer: Resource temporarily unavailable, scheduling broken" still occurs randomly. This change will allow us to debug the issue. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
56c7dd9fca
commit
6c3bf2df0d
1 changed files with 1 additions and 0 deletions
|
@ -1603,6 +1603,7 @@ rb_thread_create_timer_thread(void)
|
|||
if (err != 0) {
|
||||
rb_warn("pthread_attr_init failed for timer: %s, scheduling broken",
|
||||
strerror(err));
|
||||
VM_ASSERT(err == 0);
|
||||
return;
|
||||
}
|
||||
# ifdef PTHREAD_STACK_MIN
|
||||
|
|
Loading…
Add table
Reference in a new issue