Skip to content

Commit

Permalink
More changes for updates on main (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton authored Nov 6, 2024
1 parent bc688dc commit af885c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions include/wasmtime.hh
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,11 @@ public:
ptr.get(), static_cast<wasmtime_profiling_strategy_t>(profiler));
}

/// \brief Configures the maximum size of memory to use a "static memory"
/// \brief Configures the size of the initial linear memory allocation.
///
/// https://docs.wasmtime.dev/api/wasmtime/struct.Config.html#method.static_memory_maximum_size
void static_memory_maximum_size(size_t size) {
wasmtime_config_static_memory_maximum_size_set(ptr.get(), size);
/// https://docs.wasmtime.dev/api/wasmtime/struct.Config.html#method.memory_reservation
void memory_reservation(size_t size) {
wasmtime_config_memory_reservation_set(ptr.get(), size);
}

/// \brief Configures the size of memory's guard region
Expand Down
2 changes: 1 addition & 1 deletion tests/simple.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ TEST(Config, Smoke) {
config.cranelift_debug_verifier(false);
config.cranelift_opt_level(OptLevel::Speed);
config.profiler(ProfilingStrategy::None);
config.static_memory_maximum_size(0);
config.memory_reservation(0);
config.memory_guard_size(0);
auto result = config.cache_load_default();
config.cache_load("nonexistent").err();
Expand Down

0 comments on commit af885c2

Please sign in to comment.