YJIT: increase max chain depth for expandarray (#8205)

This commit is contained in:
Maxime Chevalier-Boisvert 2023-08-11 14:08:45 -04:00 committed by GitHub
parent 43721b1d4a
commit b6c66604d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2023-08-11 18:09:06 +00:00
Merged-By: maximecb <maximecb@ruby-lang.org>

View File

@ -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;