summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-10-25 09:07:10 -0700
committerGitHub <noreply@github.com>2022-10-25 09:07:10 -0700
commitb7644a231100b1e1b70af528f9629d2e39572087 (patch)
treeeab3b5c4cd93e286b8d6014f3249dafc02bd842d /cont.c
parent1d2d25dcadda0764f303183ac091d0c87b432566 (diff)
YJIT: GC and recompile all code pages (#6406)
when it fails to allocate a new page. Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cont.c b/cont.c
index b3c84d82ac..577a30a57a 100644
--- a/cont.c
+++ b/cont.c
@@ -69,7 +69,7 @@ static VALUE rb_cFiberPool;
#define FIBER_POOL_ALLOCATION_FREE
#endif
-#define jit_cont_enabled mjit_enabled // To be used by YJIT later
+#define jit_cont_enabled (mjit_enabled || rb_yjit_enabled_p())
enum context_type {
CONTINUATION_CONTEXT = 0,