| /wasmtime-44.0.1/examples/ |
| H A D | mpk.rs | 75 memory_reservation: Option<u64>, field 196 if let Some(memory_reservation) = args.memory_reservation { in build_engine() 197 config.memory_reservation(memory_reservation); in build_engine()
|
| H A D | fast_execution.rs | 17 config.memory_reservation(1 << 32); in main()
|
| /wasmtime-44.0.1/crates/fuzzing/src/generators/ |
| H A D | memory.rs | 121 pub memory_reservation: Option<u64>, field 134 memory_reservation: interesting_virtual_memory_size(u, 33)?, in arbitrary() 179 cfg.opts.memory_reservation = self.memory_reservation; in configure()
|
| H A D | config.rs | 92 match &mut cfg.memory_reservation { in set_differential_config() 200 if let Some(n) = &mut self.wasmtime.memory_config.memory_reservation { in make_wast_test_compliant() 418 && cfg.opts.memory_reservation == Some(0) in to_wasmtime() 724 .min(self.memory_config.memory_reservation.unwrap_or(0)); in update_module_config() 738 match &mut cfg.memory_reservation { in update_module_config() 812 && cfg.memory_reservation == Some(0) in make_internally_consistent()
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | memory.rs | 105 for &memory_reservation in sizes.iter() { in offsets_static_dynamic_oh_my() 108 config.memory_reservation(memory_reservation); in offsets_static_dynamic_oh_my() 149 config.memory_reservation(1 << 20); in guards_present() 201 config.memory_reservation(1 << 20); in guards_present_pooling() 266 config.memory_reservation(1 << 20); in guards_present_pooling_mpk() 408 config.memory_reservation(1 << 16); in tiny_static_heap() 441 config.memory_reservation(5 << 16); in static_forced_max() 455 config.memory_reservation(0); in dynamic_extra_growth_unchanged_pointer() 703 config.memory_reservation(100_000); in non_page_aligned_static_memory() 769 config.memory_reservation(0); in configure_zero()
|
| H A D | pooling_allocator.rs | 10 config.memory_reservation(1 << 16); in successful_instantiation() 30 config.memory_reservation(3 << 16); in memory_limit() 208 config.memory_reservation(1 << 16); in memory_zeroed() 245 config.memory_reservation(1 << 16); in table_limit() 378 config.memory_reservation(1 << 16); in table_zeroed() 413 config.memory_reservation(1 << 16); in total_core_instances_limit() 678 config.memory_reservation(max_size); in dynamic_memory_pooling_allocator() 1420 config.memory_reservation(0x2000000); in pooling_reuse_resets()
|
| H A D | gc.rs | 947 config.memory_reservation(SIZE); in table_init_doesnt_leak() 1354 config.memory_reservation(heap_size); in gc_heap_oom() 1577 config.memory_reservation(64 << 10); in runtime_table_init_oom() 1622 config.memory_reservation(64 << 10); in instantiate_table_init_oom() 1660 config.memory_reservation(64 << 10); in instantiate_table_init_expr_oom() 1689 config.memory_reservation(64 << 10); in instantiate_global_init_oom() 1719 config.memory_reservation(64 << 10); in array_new_elem_oom() 1764 config.memory_reservation(64 << 10); in array_init_elem_oom()
|
| H A D | memory_creator.rs | 130 .memory_reservation(0) in config()
|
| H A D | module_serialize.rs | 72 config.memory_reservation(0); in test_module_serialize_fail()
|
| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | tunables.rs | 68 pub memory_reservation: u64, 206 memory_reservation: 1 << 20, in default_miri() 242 memory_reservation: 10 * (1 << 20), in default_u32() 263 memory_reservation: 1 << 32, in default_u64()
|
| /wasmtime-44.0.1/crates/cranelift/src/ |
| H A D | bounds_checks.rs | 196 let memory_reservation = env.tunables().memory_reservation; in bounds_check_field_access() localVariable 303 && u64::from(u32::MAX) <= memory_reservation + memory_guard_size - offset_and_size in bounds_check_field_access() 350 && heap.memory.minimum_byte_size().unwrap_or(u64::MAX) <= memory_reservation in bounds_check_field_access() 352 && memory_reservation >= offset_and_size in bounds_check_field_access() 354 let adjusted_bound = memory_reservation.checked_sub(offset_and_size).unwrap(); in bounds_check_field_access()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | memory.rs | 141 || tunables.memory_reservation > 0 in new_memory() 572 memory_reservation: usize, field 622 memory_reservation: tunables.memory_reservation.try_into().unwrap(), in new() 775 base + self.alloc.byte_capacity().max(self.memory_reservation) + self.memory_guard_size; in wasm_accessible()
|
| H A D | cow.rs | 797 memory_reservation: 4 << 30, in instantiate_no_image() 844 memory_reservation: 4 << 30, in instantiate_image() 935 memory_reservation: 100 << 16, in memset_instead_of_madvise() 999 memory_reservation: 0, in dynamic() 1093 memory_reservation: 100 << 16, in reset_with_pagemap()
|
| /wasmtime-44.0.1/crates/c-api/tests/ |
| H A D | config.cc | 61 config.memory_reservation(0); in TEST() 112 config.memory_reservation(0); in TEST()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/memory/ |
| H A D | malloc.rs | 34 if tunables.memory_reservation > 0 { in new() 162 memory_reservation: 0, in tunables()
|
| H A D | mmap.rs | 81 let mut alloc_bytes = tunables.memory_reservation; in new()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/ |
| H A D | memory_pool.rs | 177 if u64::try_from(config.limits.max_memory_size).unwrap() > tunables.memory_reservation { in new() 182 tunables.memory_reservation in new() 394 tunables.memory_reservation + tunables.memory_guard_size in allocate() 685 HostAlignedByteCount::new_rounded_up_u64(tunables.memory_reservation) in new() 908 memory_reservation: WASM_PAGE_SIZE as u64, in test_memory_pool()
|
| /wasmtime-44.0.1/tests/ |
| H A D | wast.rs | 195 cfg.memory_reservation(2 * u64::from(wasmtime_environ::Memory::DEFAULT_PAGE_SIZE)); in run_wast() 222 cfg.memory_reservation(max_memory_size as u64); in run_wast()
|
| /wasmtime-44.0.1/docs/ |
| H A D | examples-fast-execution.md | 45 [`wasmtime::Config::memory_reservation`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.htm…
|
| /wasmtime-44.0.1/crates/test-util/src/ |
| H A D | component.rs | 20 config.memory_reservation(0); in config()
|
| /wasmtime-44.0.1/examples/min-platform/src/ |
| H A D | main.rs | 72 config.memory_reservation(0); in main()
|
| /wasmtime-44.0.1/crates/cli-flags/src/ |
| H A D | lib.rs | 62 pub memory_reservation: Option<u64>, 860 let memory_reservation = self in config() localVariable 862 .memory_reservation in config() 864 if let Some(size) = memory_reservation { in config() 865 config.memory_reservation(size); in config()
|
| /wasmtime-44.0.1/crates/c-api/include/wasmtime/ |
| H A D | config.h | 372 WASMTIME_CONFIG_PROP(void, memory_reservation, uint64_t)
|
| /wasmtime-44.0.1/crates/wasmtime/src/engine/ |
| H A D | serialization.rs | 297 memory_reservation, in check_tunables() 334 memory_reservation, in check_tunables() 335 other.memory_reservation, in check_tunables()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/trampoline/ |
| H A D | memory.rs | 112 let reserved_size_in_bytes = Some(tunables.memory_reservation.try_into().unwrap()); in new_memory()
|