mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Basic assertions for thread initialization.
This commit is contained in:
parent
8121a523c3
commit
5855af73b8
1 changed files with 4 additions and 0 deletions
4
vm.c
4
vm.c
|
@ -2704,6 +2704,10 @@ th_init(rb_thread_t *th, VALUE self)
|
|||
0 /* dummy cref/me */,
|
||||
0 /* dummy pc */, th->ec->vm_stack, 0, 0
|
||||
);
|
||||
} else {
|
||||
VM_ASSERT(th->ec->cfp == NULL);
|
||||
VM_ASSERT(th->ec->vm_stack == NULL);
|
||||
VM_ASSERT(th->ec->vm_stack_size == 0);
|
||||
}
|
||||
|
||||
th->status = THREAD_RUNNABLE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue