Home
last modified time | relevance | path

Searched refs:table_elements (Results 1 – 23 of 23) sorted by relevance

/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dlimits.rs250 pub fn table_elements(mut self, limit: usize) -> Self { in table_elements() method
251 self.0.table_elements = Some(limit); in table_elements()
316 table_elements: Option<usize>, field
327 table_elements: None, in default()
372 let allow = match self.table_elements { in table_growing()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/
H A Dtable_pool.rs34 .checked_mul(config.limits.table_elements) in new()
57 nominal_table_elements: config.limits.table_elements, in new()
270 table_elements: 100, in test_table_pool()
300 let mkpool = |table_elements: usize| -> Result<TablePool> { in test_table_pool_continuations_capacity()
303 table_elements, in test_table_pool_continuations_capacity()
H A Dmetrics.rs149 config.table_elements(10); in small_pool_config()
H A Dmemory_pool.rs901 table_elements: 0, in test_memory_pool()
/wasmtime-44.0.1/crates/fuzzing/src/generators/
H A Dpooling_config.rs17 pub table_elements: usize, field
51 cfg.opts.pooling_table_elements = Some(self.table_elements); in configure()
97 table_elements: u.int_in_range(0..=MAX_ELEMENTS)?, in arbitrary()
H A Dconfig.rs86 pooling.table_elements = 1_000; in set_differential_config()
235 pooling.table_elements = pooling.table_elements.max(limits::TABLE_ELEMENTS); in make_wast_test_compliant()
744 if pooling.table_elements == 0 { in update_module_config()
745 pooling.table_elements = 1; in update_module_config()
/wasmtime-44.0.1/crates/c-api/src/
H A Dstore.rs196 table_elements: i64, in wasmtime_store_limiter()
205 if table_elements >= 0 { in wasmtime_store_limiter()
206 limiter = limiter.table_elements(table_elements as usize); in wasmtime_store_limiter()
H A Dconfig.rs661 c.config.table_elements(elements); in wasmtime_pooling_allocation_config_table_elements_set()
/wasmtime-44.0.1/tests/all/
H A Dlimits.rs23 .table_elements(5) in test_limits()
75 .table_elements(5) in test_limits()
104 table_elements: usize, in test_limits_async() field
122 Ok(desired <= self.table_elements) in test_limits_async()
130 table_elements: 5, in test_limits_async()
278 let mut store = Store::new(&engine, StoreLimitsBuilder::new().table_elements(5).build()); in test_limits_table_only()
324 let mut store = Store::new(&engine, StoreLimitsBuilder::new().table_elements(4).build()); in test_initial_table_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()
1127 .table_elements(1) in growth_trap()
H A Dmain.rs110 config.table_elements(10); in small_pool_config()
H A Dpooling_allocator.rs103 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()
241 pool.table_elements(TABLE_ELEMENTS); in table_limit()
320 pool.max_memory_size(0).table_elements(6); in table_init()
1257 cfg.table_elements(0); in tricky_empty_table_with_empty_virtual_memory_alloc()
H A Dasync_functions.rs354 .table_elements(0); in async_with_pooling_stacks()
377 .table_elements(0); in async_host_func_with_pooling_stacks()
410 .table_elements(0); in async_mpk_protection()
/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dstore.hh224 void limiter(int64_t memory_size, int64_t table_elements, int64_t instances, in limiter() argument
226 wasmtime_store_limiter(ptr.get(), memory_size, table_elements, instances, in limiter()
H A Dstore.h113 int64_t table_elements,
H A Dconfig.h776 WASMTIME_POOLING_ALLOCATION_CONFIG_PROP(table_elements, size_t)
H A Dconfig.hh206 void table_elements(size_t elements) { in table_elements() function in wasmtime::PoolAllocationConfig
/wasmtime-44.0.1/examples/
H A Dfast_instantiation.rs19 pool.table_elements(5000); in main()
/wasmtime-44.0.1/crates/c-api/tests/
H A Dconfig.cc25 config.table_elements(17); in TEST()
/wasmtime-44.0.1/crates/wasmtime/tests/
H A Dhost_segfault.rs194 cfg.table_elements(10); in main()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/
H A Dpooling.rs145 pub table_elements: usize, field
183 table_elements: 20_000, in default()
/wasmtime-44.0.1/src/
H A Dcommon.rs140 limits = limits.table_elements(max); in store_limits()
/wasmtime-44.0.1/crates/wasmtime/src/
H A Dconfig.rs3845 pub fn table_elements(&mut self, elements: usize) -> &mut Self { in table_elements() method
3846 self.config.limits.table_elements = elements; in table_elements()
/wasmtime-44.0.1/crates/cli-flags/src/
H A Dlib.rs968 cfg.table_elements(limit); in config()