direct_mapping: disable stack frame gaps (#34254)

Gaps don't work with direct mapping which assumes a 1:1 mapping between virtual
and host addresses.
This commit is contained in:
Alessandro Decina 2023-11-29 09:54:48 +11:00 committed by GitHub
parent 573ec81fbb
commit a0df9def91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ pub fn create_program_runtime_environment_v1<'a>(
max_call_depth: compute_budget.max_call_depth,
stack_frame_size: compute_budget.stack_frame_size,
enable_address_translation: true,
enable_stack_frame_gaps: true,
enable_stack_frame_gaps: !feature_set.is_active(&bpf_account_data_direct_mapping::id()),
instruction_meter_checkpoint_distance: 10000,
enable_instruction_meter: true,
enable_instruction_tracing: debugging_features,