add vm_sync debug counters

* vm_sync_lock
* vm_sync_lock_enter
* vm_sync_lock_enter_nb
* vm_sync_lock_enter_cr
* vm_sync_barrier
This commit is contained in:
Koichi Sasada 2020-12-16 10:10:05 +09:00
parent 171f0431e7
commit 0b678cc9e5
Notes: git 2020-12-16 10:38:36 +09:00
4 changed files with 21 additions and 0 deletions

View file

@ -228,6 +228,8 @@ vm_barrier_finish_p(rb_vm_t *vm)
void
rb_vm_barrier(void)
{
RB_DEBUG_COUNTER_INC(vm_sync_barrier);
if (!rb_multi_ractor_p()) {
// no other ractors
return;