From b6c66604d81d53fda9f717831eac4547891601ad Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Fri, 11 Aug 2023 14:08:45 -0400 Subject: [PATCH] YJIT: increase max chain depth for expandarray (#8205) --- yjit/src/codegen.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index 3af6167045..00342ea617 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -1603,7 +1603,7 @@ fn gen_expandarray( jit, asm, ocb, - OPT_AREF_MAX_CHAIN_DEPTH, + EXPANDARRAY_MAX_CHAIN_DEPTH, Counter::expandarray_chain_max_depth, ); @@ -1615,7 +1615,7 @@ fn gen_expandarray( jit, asm, ocb, - OPT_AREF_MAX_CHAIN_DEPTH, + EXPANDARRAY_MAX_CHAIN_DEPTH, Counter::expandarray_chain_max_depth, ); } @@ -2008,6 +2008,9 @@ pub const SET_IVAR_MAX_DEPTH: i32 = 10; // hashes and arrays pub const OPT_AREF_MAX_CHAIN_DEPTH: i32 = 2; +// expandarray +pub const EXPANDARRAY_MAX_CHAIN_DEPTH: i32 = 4; + // up to 10 different classes pub const SEND_MAX_DEPTH: i32 = 20;