aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-01-04 00:32:58 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-05 22:11:20 -0800
commiteddec7bc209d721e99a8cd5ceaafd0f2ab270cc3 (patch)
tree5ffd0ec11d0aff36e2b5715ee3ca0b83deb60c10 /mjit.c
parent1f69ba1d8413abe20e95f74761ba267f0e35c649 (diff)
downloadruby-eddec7bc209d721e99a8cd5ceaafd0f2ab270cc3.tar.gz
Support release build
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mjit.c b/mjit.c
index c143bf3fa6..c490b0e8a4 100644
--- a/mjit.c
+++ b/mjit.c
@@ -289,13 +289,13 @@ mjit_compile(FILE *f, const rb_iseq_t *iseq, const char *funcname, int id)
// JIT buffer
uint8_t *rb_mjit_mem_block = NULL;
+// Basically mjit_opts.stats, but this becomes false during MJIT compilation.
+static bool mjit_stats_p = false;
+
#if MJIT_STATS
struct rb_mjit_runtime_counters rb_mjit_counters = { 0 };
-// Basically mjit_opts.stats, but this becomes false during MJIT compilation.
-static bool mjit_stats_p = false;
-
void
rb_mjit_collect_vm_usage_insn(int insn)
{