Basic assertions for thread initialization.
This commit is contained in:
parent
8121a523c3
commit
5855af73b8
4
vm.c
4
vm.c
@ -2704,6 +2704,10 @@ th_init(rb_thread_t *th, VALUE self)
|
|||||||
0 /* dummy cref/me */,
|
0 /* dummy cref/me */,
|
||||||
0 /* dummy pc */, th->ec->vm_stack, 0, 0
|
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;
|
th->status = THREAD_RUNNABLE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user