From e1889dd7dedb8afc8571de01f363366b1f8f1a24 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 29 Sep 2024 11:42:10 +0900 Subject: [PATCH] Assertions should not have side effects --- thread_pthread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thread_pthread.c b/thread_pthread.c index 6c8ec35671..c9a5c60bd5 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -2360,7 +2360,8 @@ rb_threadptr_sched_free(rb_thread_t *th) } ruby_xfree(th->sched.context); - VM_ASSERT((th->sched.context = NULL) == NULL); + th->sched.context = NULL; + // VM_ASSERT(th->sched.context == NULL); #else ruby_xfree(th->sched.context_stack); native_thread_destroy(th->nt);