mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Assertions should not have side effects
This commit is contained in:
parent
01ff65af32
commit
e1889dd7de
Notes:
git
2024-09-29 09:45:11 +00:00
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue