summaryrefslogtreecommitdiff
path: root/mjit.h
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2020-10-19 10:41:26 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:25 -0400
commit6f4d17d62236460fd5aa9d07fea4d6794f27c397 (patch)
treed80970031b1a1950114d866ed2224dc5831308e1 /mjit.h
parent12ba0c0815bf75c6774b149b71304df3b10d0088 (diff)
Never compile with MicroJIT when MJIT is enabled
There is a crash in there that we don't want to worry about for now.
Diffstat (limited to 'mjit.h')
-rw-r--r--mjit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit.h b/mjit.h
index d887e7df5c..b9cbf37a19 100644
--- a/mjit.h
+++ b/mjit.h
@@ -153,7 +153,7 @@ mjit_exec(rb_execution_context_t *ec)
#ifndef MJIT_HEADER
const int ujit_call_threashold = 10;
- if (body->total_calls == ujit_call_threashold) {
+ if (body->total_calls == ujit_call_threashold && !mjit_call_p) {
rb_ujit_compile_iseq(iseq);
}
#endif