mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
re-layout rb_ractor_t
separate synchronization data and ractor local data.
This commit is contained in:
parent
2749123e21
commit
ee194af2aa
Notes:
git
2020-12-09 01:41:20 +09:00
3 changed files with 123 additions and 122 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue