Skip to main content

clear_stack_pool

Function clear_stack_pool 

Source
pub fn clear_stack_pool()
Expand description

Clear thread-local stack pool

Clears the thread-local stack pool to reset allocation state for benchmarking. This ensures consistent memory allocation patterns across benchmark runs.

ยงExample

use blvm_consensus::script::clear_stack_pool;

// Clear pool before benchmark run
clear_stack_pool();