summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-16 12:33:44 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-16 12:33:44 +0000
commitbb1e08e770e6d3c6528e9d5041b52016b94bebd2 (patch)
treee37b6649a7a0ac96532a66a5a91e70dc185ca391 /thread_pthread.c
parent4cf828632f3e2411b4c141fb30b2edf4844351fa (diff)
thread_pthread (ubf_timer_destroy): use VM_ASSERT
Don't need the overhead at runtime git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index b0160090d8..745c55544e 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1795,9 +1795,7 @@ ubf_timer_destroy(void)
if (timer_delete(timer_posix.timerid) < 0)
rb_sys_fail("timer_delete");
- if (ATOMIC_EXCHANGE(timer_posix.state, RTIMER_DEAD) != RTIMER_DEAD) {
- rb_bug("YOU KNOW I'M NOT DEAD\n");
- }
+ VM_ASSERT(ATOMIC_EXCHANGE(timer_posix.state, RTIMER_DEAD) == RTIMER_DEAD);
}
#elif UBF_TIMER == UBF_TIMER_PTHREAD
int err;