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
@ -1604,7 +1604,6 @@ rb_thread_create_timer_thread(void)
|
|||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
rb_warn("pthread_attr_init failed for timer: %s, scheduling broken",
|
rb_warn("pthread_attr_init failed for timer: %s, scheduling broken",
|
||||||
strerror(err));
|
strerror(err));
|
||||||
VM_ASSERT(err == 0);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
# ifdef PTHREAD_STACK_MIN
|
# ifdef PTHREAD_STACK_MIN
|
||||||
@ -1673,6 +1672,7 @@ rb_thread_create_timer_thread(void)
|
|||||||
else {
|
else {
|
||||||
rb_warn("timer thread stack size: system default");
|
rb_warn("timer thread stack size: system default");
|
||||||
}
|
}
|
||||||
|
VM_ASSERT(err == 0);
|
||||||
#if USE_SLEEPY_TIMER_THREAD
|
#if USE_SLEEPY_TIMER_THREAD
|
||||||
CLOSE_INVALIDATE(normal[0]);
|
CLOSE_INVALIDATE(normal[0]);
|
||||||
CLOSE_INVALIDATE(normal[1]);
|
CLOSE_INVALIDATE(normal[1]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user