From bb4a2351cb86ae7e2603e1280e1eb756c89c7029 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 24 Jun 2020 22:58:22 -0700 Subject: Do not JIT inline builtin methods It's probably not worth it because there's nothing we can optimize in such builtin methods. It's worth JIT only when inlined. --- mjit.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mjit.h') diff --git a/mjit.h b/mjit.h index 177967a236..06eb300f6c 100644 --- a/mjit.h +++ b/mjit.h @@ -108,6 +108,7 @@ static inline int mjit_target_iseq_p(struct rb_iseq_constant_body *body) { return (body->type == ISEQ_TYPE_METHOD || body->type == ISEQ_TYPE_BLOCK) + && !body->builtin_inline_p && body->iseq_size < JIT_ISEQ_SIZE_THRESHOLD; } -- cgit v1.2.3