diff options
author | Koichi Sasada <[email protected]> | 2020-12-16 10:10:05 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-12-16 10:38:12 +0900 |
commit | 0b678cc9e5a5149e40765562142ed1dc05d09b53 (patch) | |
tree | a2dc78ae64a8323acecd43ee044cc1e5ed8786e1 /vm_sync.c | |
parent | 171f0431e766ba5b1a326386fff34a30f6cbc4c5 (diff) |
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
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3910
Diffstat (limited to 'vm_sync.c')
-rw-r--r-- | vm_sync.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |