aboutsummaryrefslogtreecommitdiffstats
path: root/vm_exec.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-07-13 15:14:43 -0700
committerGitHub <noreply@github.com>2023-07-13 18:14:43 -0400
commitd814722fb8299c4baace3e76447a55a3d5478e3a (patch)
tree9a2c1ad1a2eec7f7df26ca4deef4a52cddb3750f /vm_exec.c
parente850181acf0e68a162c75d47b7a0951ab7d878b1 (diff)
downloadruby-d814722fb8299c4baace3e76447a55a3d5478e3a.tar.gz
YJIT: Make ratio_in_yjit always available (#8064)
Diffstat (limited to 'vm_exec.c')
-rw-r--r--vm_exec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm_exec.c b/vm_exec.c
index cc4df7351c..1a4e0ad514 100644
--- a/vm_exec.c
+++ b/vm_exec.c
@@ -11,6 +11,11 @@
#include <math.h>
+#if USE_YJIT
+// The number of instructions executed on vm_exec_core. --yjit-stats uses this.
+uint64_t rb_vm_insns_count = 0;
+#endif
+
#if VM_COLLECT_USAGE_DETAILS
static void vm_analysis_insn(int insn);
#endif