diff --git a/bins/revme/src/statetest/runner.rs b/bins/revme/src/statetest/runner.rs index de414f9ccb..08a9cf49e4 100644 --- a/bins/revme/src/statetest/runner.rs +++ b/bins/revme/src/statetest/runner.rs @@ -349,12 +349,7 @@ pub fn run( let console_bar = console_bar.clone(); let elapsed = elapsed.clone(); - let mut thread = std::thread::Builder::new(); - - // Allow bigger stack in debug mode to prevent stack overflow errors - //if cfg!(debug_assertions) { - thread = thread.stack_size(4 * 1024 * 1024); - //} + let thread: std::thread::Builder = std::thread::Builder::new(); joins.push( thread diff --git a/crates/interpreter/src/instructions/host.rs b/crates/interpreter/src/instructions/host.rs index b6378b37d4..faa89ca5e4 100644 --- a/crates/interpreter/src/instructions/host.rs +++ b/crates/interpreter/src/instructions/host.rs @@ -239,6 +239,7 @@ pub fn selfdestruct(interpreter: &mut Interpreter, host: &mut dyn Ho interpreter.instruction_result = InstructionResult::SelfDestruct; } +#[inline(never)] pub fn prepare_create_inputs( interpreter: &mut Interpreter, host: &mut dyn Host, @@ -368,6 +369,7 @@ pub fn static_call(interpreter: &mut Interpreter, host: &mut dyn Hos call_inner::(interpreter, CallScheme::StaticCall, host); } +#[inline(never)] fn prepare_call_inputs( interpreter: &mut Interpreter, scheme: CallScheme, diff --git a/crates/revm/src/evm_impl.rs b/crates/revm/src/evm_impl.rs index f033dce61f..76bc1f5cce 100644 --- a/crates/revm/src/evm_impl.rs +++ b/crates/revm/src/evm_impl.rs @@ -343,6 +343,7 @@ impl<'a, GSPEC: Spec, DB: Database, const INSPECT: bool> EVMImpl<'a, GSPEC, DB, (new_state, logs, gas_used, gas_refunded) } + #[inline(never)] fn prepare_create(&mut self, inputs: &CreateInputs) -> Result { let gas = Gas::new(inputs.gas_limit); @@ -632,6 +633,7 @@ impl<'a, GSPEC: Spec, DB: Database, const INSPECT: bool> EVMImpl<'a, GSPEC, DB, } } + #[inline(never)] fn prepare_call(&mut self, inputs: &CallInputs) -> Result { let gas = Gas::new(inputs.gas_limit); let account = match self