diff --git a/crates/cli-flags/src/lib.rs b/crates/cli-flags/src/lib.rs index f172d254115f..8a7bb6dc9b6b 100644 --- a/crates/cli-flags/src/lib.rs +++ b/crates/cli-flags/src/lib.rs @@ -115,6 +115,14 @@ wasmtime_option_group! { /// The maximum runtime size of each linear memory in the pooling /// allocator, in bytes. pub pooling_max_memory_size: Option, + + /// The maximum table elements for any table defined in a module when + /// using the pooling allocator. + pub pooling_table_elements: Option, + + /// The maximum size, in bytes, allocated for a core instance's metadata + /// when using the pooling allocator. + pub pooling_max_core_instance_size: Option, } enum Optimize { @@ -609,6 +617,12 @@ impl CommonOptions { if let Some(limit) = self.opts.pooling_total_tables { cfg.total_tables(limit); } + if let Some(limit) = self.opts.pooling_table_elements { + cfg.table_elements(limit); + } + if let Some(limit) = self.opts.pooling_max_core_instance_size { + cfg.max_core_instance_size(limit); + } match_feature! { ["async" : self.opts.pooling_total_stacks] limit => cfg.total_stacks(limit),