Home
last modified time | relevance | path

Searched refs:max_memory_size (Results 1 – 25 of 27) sorted by relevance

12

/wasmtime-44.0.1/tests/
H A Dwast.rs220 let max_memory_size = limits::MEMORY_SIZE; in run_wast() localVariable
222 cfg.memory_reservation(max_memory_size as u64); in run_wast()
230 .max_memory_size(max_memory_size) in run_wast()
/wasmtime-44.0.1/crates/fuzzing/src/generators/
H A Dpooling_config.rs16 pub max_memory_size: usize, field
50 cfg.opts.pooling_max_memory_size = Some(self.max_memory_size); in configure()
96 max_memory_size: u.int_in_range(0..=MAX_MEMORY_SIZE)?, in arbitrary()
H A Dconfig.rs76 pooling.max_memory_size = 10 << 16; in set_differential_config()
93 Some(size) => *size = (*size).max(pooling.max_memory_size as u64), in set_differential_config()
94 other @ None => *other = Some(pooling.max_memory_size as u64), in set_differential_config()
234 pooling.max_memory_size = pooling.max_memory_size.max(limits::MEMORY_SIZE); in make_wast_test_compliant()
723 .min(pooling.max_memory_size as u64) in update_module_config()
725 pooling.max_memory_size = min as usize; in update_module_config()
733 if pooling.max_memory_size < (1 << 16) { in update_module_config()
734 pooling.max_memory_size = 1 << 16; in update_module_config()
739 Some(size) => *size = (*size).max(pooling.max_memory_size as u64), in update_module_config()
740 size @ None => *size = Some(pooling.max_memory_size as u64), in update_module_config()
/wasmtime-44.0.1/examples/
H A Dmpk.rs188 let max_memory_size = in build_engine() localVariable
190 pool.max_memory_size(max_memory_size) in build_engine()
H A Dfast_instantiation.rs17 pool.max_memory_size(1 << 31); // 2 GiB in main()
/wasmtime-44.0.1/tests/all/
H A Dpooling_allocator.rs26 pool.max_memory_size(3 << 16); in memory_limit()
103 pool.max_memory_size(2 << 16).table_elements(0); in memory_init()
137 pool.max_memory_size(2 << 16).table_elements(0); in memory_guard_page_trap()
204 pool.max_memory_size(1 << 16).table_elements(0); in memory_zeroed()
320 pool.max_memory_size(0).table_elements(6); in table_init()
676 pool.max_memory_size(max_size as usize); in dynamic_memory_pooling_allocator()
789 pool.max_memory_size(0); in zero_memory_pages_disallows_oob()
1262 cfg.max_memory_size(0); in tricky_empty_table_with_empty_virtual_memory_alloc()
1376 cfg.max_memory_size(761927); in instantiate_non_page_aligned_sizes()
1417 cfg.max_memory_size(0x2000000); in pooling_reuse_resets()
H A Dinstance.rs47 pool.max_memory_size(1 << 32); in linear_memory_limits()
H A Dmain.rs108 config.max_memory_size(1 << 16); in small_pool_config()
H A Dasync_functions.rs353 .max_memory_size(1 << 16) in async_with_pooling_stacks()
376 .max_memory_size(1 << 16) in async_host_func_with_pooling_stacks()
409 .max_memory_size(1 << 16) in async_mpk_protection()
H A Dlimits.rs355 .max_memory_size(5 << 16) in test_pooling_allocator_initial_limits_exceeded()
751 pool.max_memory_size(10 << 16).table_elements(10); in custom_limiter_detect_grow_failure()
862 pool.max_memory_size(10 << 16).table_elements(10); in custom_limiter_async_detect_grow_failure()
H A Dmemory.rs199 .max_memory_size(10 << 16) in guards_present_pooling()
263 .max_memory_size(10 << 16) in guards_present_pooling_mpk()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/
H A Dtable_pool.rs271 max_memory_size: 0, in test_table_pool()
305 max_memory_size: 0, in test_table_pool_continuations_capacity()
H A Dmemory_pool.rs177 if u64::try_from(config.limits.max_memory_size).unwrap() > tunables.memory_reservation { in new()
181 config.limits.max_memory_size, in new()
690 let max_memory_bytes = HostAlignedByteCount::new_rounded_up(limits.max_memory_size) in new()
902 max_memory_size: WASM_PAGE_SIZE as usize, in test_memory_pool()
H A Dmetrics.rs147 config.max_memory_size(2 << 16); in small_pool_config()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/
H A Dpooling.rs152 pub max_memory_size: usize, field
186 max_memory_size: 1 << 32, // 4G, in default()
188 max_memory_size: 10 << 20, // 10 MiB in default()
917 max_memory_size: 0x100010000, in test_pooling_allocator_with_memory_pages_exceeded()
/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dconfig.h793 WASMTIME_POOLING_ALLOCATION_CONFIG_PROP(max_memory_size, size_t)
H A Dconfig.hh223 void max_memory_size(size_t bytes) { in max_memory_size() function in wasmtime::PoolAllocationConfig
/wasmtime-44.0.1/crates/c-api/tests/
H A Dconfig.cc27 config.max_memory_size(19); in TEST()
/wasmtime-44.0.1/benches/
H A Dinstantiation.rs222 config.max_memory_size(10_000 << 16); in strategies()
/wasmtime-44.0.1/crates/cli-flags/src/
H A Dlib.rs340 pub max_memory_size: Option<usize>,
979 .or(self.wasm.max_memory_size) in config()
981 cfg.max_memory_size(max); in config()
/wasmtime-44.0.1/tests/all/component_model/
H A Dstrings.rs590 pooling_config.max_memory_size(65536); in pass_string_on_component_boundary()
/wasmtime-44.0.1/crates/wasmtime/tests/
H A Dhost_segfault.rs192 cfg.max_memory_size(1 << 16); in main()
/wasmtime-44.0.1/src/
H A Dcommon.rs136 if let Some(max) = self.common.wasm.max_memory_size { in store_limits()
/wasmtime-44.0.1/crates/fuzzing/src/oracles/
H A Dcomponent_api.rs183 p.max_memory_size = 10 << 20; // 10 MiB in store()
/wasmtime-44.0.1/crates/wasmtime/src/
H A Dconfig.rs3887 pub fn max_memory_size(&mut self, bytes: usize) -> &mut Self { in max_memory_size() method
3888 self.config.limits.max_memory_size = bytes; in max_memory_size()

12