ruby/ruby-2.6.5-disable-assert.patch
David Abdurachmanov 4a959b9846
Disable pthread assert for riscv
Let's see how far this can go in testing.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
2020-01-17 19:56:49 +02:00

14 lines
417 B
Diff

diff --git a/thread_pthread.c b/thread_pthread.c
index 670e917..d466d10 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1992,7 +1992,7 @@ rb_sigwait_fd_put(const rb_thread_t *th, int fd)
VM_ASSERT(signal_self_pipe.normal[0] == fd);
old = ATOMIC_PTR_EXCHANGE(sigwait_th, THREAD_INVALID);
- if (old != th) assert(old == th);
+ /* if (old != th) assert(old == th); */
}
#ifndef HAVE_PPOLL