mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix the position of VM_ASSERT for "pthread_create failed for time"
Fix r61706. Thank you, Eric Wong. [ruby-core:84756] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
66e42f4aa6
commit
3ecd8ab825
1 changed files with 1 additions and 1 deletions
|
@ -1604,7 +1604,6 @@ 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
|
||||
|
@ -1673,6 +1672,7 @@ rb_thread_create_timer_thread(void)
|
|||
else {
|
||||
rb_warn("timer thread stack size: system default");
|
||||
}
|
||||
VM_ASSERT(err == 0);
|
||||
#if USE_SLEEPY_TIMER_THREAD
|
||||
CLOSE_INVALIDATE(normal[0]);
|
||||
CLOSE_INVALIDATE(normal[1]);
|
||||
|
|
Loading…
Add table
Reference in a new issue