YJIT: increase max chain depth for expandarray (#8205)
This commit is contained in:
parent
43721b1d4a
commit
b6c66604d8
Notes:
git
2023-08-11 18:09:06 +00:00
Merged-By: maximecb <maximecb@ruby-lang.org>
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user