re-layout rb_ractor_t

separate synchronization data and ractor local data.
This commit is contained in:
Koichi Sasada 2020-12-08 00:42:20 +09:00
parent 2749123e21
commit ee194af2aa
Notes: git 2020-12-09 01:41:20 +09:00
3 changed files with 123 additions and 122 deletions

View file

@ -49,7 +49,7 @@ vm_lock_enter(rb_ractor_t *cr, rb_vm_t *vm, bool locked, bool no_barrier, unsign
else {
#if RACTOR_CHECK_MODE
// locking ractor and acquire VM lock will cause deadlock
VM_ASSERT(cr->locked_by != cr->self);
VM_ASSERT(cr->sync.locked_by != cr->self);
#endif
// lock