aboutsummaryrefslogtreecommitdiffstats
path: root/mjit_compile.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-29 13:54:29 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-29 13:54:29 +0000
commitb03c11a337c53c219a840eed4569e411289f0ddd (patch)
tree6ff34c04a67ecf3b4e920a1bb78d48ac71a06e74 /mjit_compile.c
parent017cb09eb6d40b3d7f7ca08db4aa16cfb91012f2 (diff)
downloadruby-b03c11a337c53c219a840eed4569e411289f0ddd.tar.gz
Add debug counters for MJIT cancel
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit_compile.c')
-rw-r--r--mjit_compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mjit_compile.c b/mjit_compile.c
index f0ba9018ce..8a3b6b3437 100644
--- a/mjit_compile.c
+++ b/mjit_compile.c
@@ -189,6 +189,7 @@ compile_cancel_handler(FILE *f, const struct rb_iseq_constant_body *body, struct
{
unsigned int i;
fprintf(f, "\ncancel:\n");
+ fprintf(f, " RB_DEBUG_COUNTER_INC(mjit_cancel);\n");
if (status->local_stack_p) {
for (i = 0; i < body->stack_max; i++) {
fprintf(f, " *(vm_base_ptr(reg_cfp) + %d) = stack[%d];\n", i, i);