Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YJIT: Bump SEND_MAX_DEPTH to 20 #7469

Merged
merged 2 commits into from Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions yjit/src/codegen.rs
Expand Up @@ -353,9 +353,10 @@ fn verify_ctx(jit: &JITState, ctx: &Context) {
// If the actual type differs from the learned type
if val_type.diff(learned_type) == TypeDiff::Incompatible {
panic!(
"verify_ctx: ctx type ({:?}) incompatible with actual value on stack: {}",
"verify_ctx: ctx type ({:?}) incompatible with actual value on stack: {} ({:?})",
learned_type,
obj_info_str(stack_val)
obj_info_str(stack_val),
val_type,
);
}
}
Expand Down Expand Up @@ -1867,7 +1868,7 @@ pub const SET_IVAR_MAX_DEPTH: i32 = 10;
pub const OPT_AREF_MAX_CHAIN_DEPTH: i32 = 2;

// up to 10 different classes
pub const SEND_MAX_DEPTH: i32 = 10;
pub const SEND_MAX_DEPTH: i32 = 20;

// up to 20 different methods for send
pub const SEND_MAX_CHAIN_DEPTH: i32 = 20;
Expand Down
1 change: 1 addition & 0 deletions yjit/src/core.rs
Expand Up @@ -141,6 +141,7 @@ impl Type {
Type::HeapSymbol => true,
Type::TString => true,
Type::CString => true,
Type::BlockParamProxy => true,
_ => false,
}
}
Expand Down