()
| 114 | } |
| 115 | |
| 116 | fn config() -> (Store<()>, Arc<CustomStackCreator>) { |
| 117 | let stack_creator = Arc::new(CustomStackCreator::new().unwrap()); |
| 118 | let mut config = Config::new(); |
| 119 | config |
| 120 | .max_wasm_stack(stack_creator.size / 2) |
| 121 | .async_stack_size(stack_creator.size) |
| 122 | .with_host_stack(stack_creator.clone()); |
| 123 | ( |
| 124 | Store::new(&Engine::new(&config).unwrap(), ()), |
| 125 | stack_creator, |
| 126 | ) |
| 127 | } |
| 128 | |
| 129 | #[tokio::test] |
| 130 | #[cfg_attr(asan, ignore)] |