Assertions should not have side effects

This commit is contained in:
Nobuyoshi Nakada 2024-09-29 11:42:10 +09:00
parent 01ff65af32
commit e1889dd7de
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2024-09-29 09:45:11 +00:00

View File

@ -2360,7 +2360,8 @@ rb_threadptr_sched_free(rb_thread_t *th)
} }
ruby_xfree(th->sched.context); ruby_xfree(th->sched.context);
VM_ASSERT((th->sched.context = NULL) == NULL); th->sched.context = NULL;
// VM_ASSERT(th->sched.context == NULL);
#else #else
ruby_xfree(th->sched.context_stack); ruby_xfree(th->sched.context_stack);
native_thread_destroy(th->nt); native_thread_destroy(th->nt);