diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-29 14:44:09 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-29 14:44:09 +0000 |
commit | 9d047fd3e51945c8fcc3a8a97c41dc2baf016974 (patch) | |
tree | cfcaa690382c4e9d361a192e5066c63c187db53f /mjit_worker.c | |
parent | e465d6c5df2c3b6f97348b2d21037be3f55c7d38 (diff) |
Add mjit_compile_failures debug counter
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit_worker.c')
-rw-r--r-- | mjit_worker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mjit_worker.c b/mjit_worker.c index 51acac3471..c651809ac5 100644 --- a/mjit_worker.c +++ b/mjit_worker.c @@ -1241,6 +1241,7 @@ mjit_worker(void) if (unit) { // JIT compile mjit_func_t func = convert_unit_to_func(unit); + RB_DEBUG_COUNTER_INC_IF(mjit_compile_failures, func == (mjit_func_t)NOT_COMPILED_JIT_ISEQ_FUNC); // `mjit_copy_cache_from_main_thread` in `mjit_compile` may wait for a long time // and worker may be stopped during the compilation. |