Class PanamaPoolingAllocatorConfig
java.lang.Object
ai.tegmentum.wasmtime4j.pool.AbstractPoolingAllocatorConfig
ai.tegmentum.wasmtime4j.panama.pool.PanamaPoolingAllocatorConfig
- All Implemented Interfaces:
ai.tegmentum.wasmtime4j.pool.PoolingAllocatorConfig
public final class PanamaPoolingAllocatorConfig
extends ai.tegmentum.wasmtime4j.pool.AbstractPoolingAllocatorConfig
Panama implementation of pooling allocator configuration.
- Since:
- 1.0.0
-
Field Summary
Fields inherited from interface ai.tegmentum.wasmtime4j.pool.PoolingAllocatorConfig
DEFAULT_ASYNC_STACK_KEEP_RESIDENT, DEFAULT_DECOMMIT_BATCH_SIZE, DEFAULT_INSTANCE_POOL_SIZE, DEFAULT_LINEAR_MEMORY_KEEP_RESIDENT, DEFAULT_MAX_COMPONENT_INSTANCE_SIZE, DEFAULT_MAX_CORE_INSTANCE_SIZE, DEFAULT_MAX_CORE_INSTANCES_PER_COMPONENT, DEFAULT_MAX_MEMORIES_PER_COMPONENT, DEFAULT_MAX_MEMORIES_PER_MODULE, DEFAULT_MAX_MEMORY_PER_INSTANCE, DEFAULT_MAX_MEMORY_PROTECTION_KEYS, DEFAULT_MAX_MEMORY_SIZE, DEFAULT_MAX_STACKS, DEFAULT_MAX_TABLES, DEFAULT_MAX_TABLES_PER_COMPONENT, DEFAULT_MAX_TABLES_PER_INSTANCE, DEFAULT_MAX_UNUSED_WARM_SLOTS, DEFAULT_POOL_WARMING_PERCENTAGE, DEFAULT_STACK_SIZE, DEFAULT_TABLE_ELEMENTS, DEFAULT_TABLE_KEEP_RESIDENT, DEFAULT_TOTAL_COMPONENT_INSTANCES, DEFAULT_TOTAL_CORE_INSTANCES, DEFAULT_TOTAL_GC_HEAPS, DEFAULT_TOTAL_MEMORIES -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new PanamaPoolingAllocatorConfig with default values.PanamaPoolingAllocatorConfig(int instancePoolSize, long maxMemoryPerInstance, int stackSize, int maxStacks, int maxTablesPerInstance, int maxTables, boolean memoryDecommitEnabled, boolean poolWarmingEnabled, float poolWarmingPercentage, int totalCoreInstances, int totalComponentInstances, int maxCoreInstancesPerComponent, int totalGcHeaps, long maxMemorySize) Creates a new PanamaPoolingAllocatorConfig with the original 14 parameters.PanamaPoolingAllocatorConfig(int instancePoolSize, long maxMemoryPerInstance, int stackSize, int maxStacks, int maxTablesPerInstance, int maxTablesPerComponent, int maxTables, boolean memoryDecommitEnabled, boolean poolWarmingEnabled, float poolWarmingPercentage, int totalCoreInstances, int totalComponentInstances, int maxCoreInstancesPerComponent, int totalGcHeaps, long maxMemorySize, int maxUnusedWarmSlots, int decommitBatchSize, long linearMemoryKeepResident, long tableKeepResident, long asyncStackKeepResident, int totalMemories, long maxCoreInstanceSize, long maxComponentInstanceSize, int maxMemoriesPerModule, int maxMemoriesPerComponent, int tableElements, ai.tegmentum.wasmtime4j.config.Enabled memoryProtectionKeysEnabled, int maxMemoryProtectionKeys, ai.tegmentum.wasmtime4j.config.Enabled pagemapScanEnabled) Creates a new PanamaPoolingAllocatorConfig with all 29 parameters. -
Method Summary
Methods inherited from class ai.tegmentum.wasmtime4j.pool.AbstractPoolingAllocatorConfig
getAsyncStackKeepResident, getDecommitBatchSize, getInstancePoolSize, getLinearMemoryKeepResident, getMaxComponentInstanceSize, getMaxCoreInstanceSize, getMaxCoreInstancesPerComponent, getMaxMemoriesPerComponent, getMaxMemoriesPerModule, getMaxMemoryPerInstance, getMaxMemoryProtectionKeys, getMaxMemorySize, getMaxStacks, getMaxTables, getMaxTablesPerComponent, getMaxTablesPerInstance, getMaxUnusedWarmSlots, getMemoryProtectionKeys, getPagemapScan, getPoolWarmingPercentage, getStackSize, getTableElements, getTableKeepResident, getTotalComponentInstances, getTotalCoreInstances, getTotalGcHeaps, getTotalMemories, isMemoryDecommitEnabled, isMemoryProtectionKeysEnabled, isPagemapScanEnabled, isPoolWarmingEnabled, toJson, toString, validate
-
Constructor Details
-
PanamaPoolingAllocatorConfig
public PanamaPoolingAllocatorConfig()Creates a new PanamaPoolingAllocatorConfig with default values. -
PanamaPoolingAllocatorConfig
public PanamaPoolingAllocatorConfig(int instancePoolSize, long maxMemoryPerInstance, int stackSize, int maxStacks, int maxTablesPerInstance, int maxTables, boolean memoryDecommitEnabled, boolean poolWarmingEnabled, float poolWarmingPercentage, int totalCoreInstances, int totalComponentInstances, int maxCoreInstancesPerComponent, int totalGcHeaps, long maxMemorySize) Creates a new PanamaPoolingAllocatorConfig with the original 14 parameters.- Parameters:
instancePoolSize- the number of instances in the poolmaxMemoryPerInstance- maximum memory per instance in bytesstackSize- stack size for WebAssembly execution in bytesmaxStacks- maximum number of stacks in the poolmaxTablesPerInstance- maximum tables per instancemaxTables- maximum total tables in the poolmemoryDecommitEnabled- whether memory decommit optimization is enabledpoolWarmingEnabled- whether pool warming is enabled on startuppoolWarmingPercentage- the pool warming percentage (0.0 to 1.0)totalCoreInstances- maximum concurrent core module instancestotalComponentInstances- maximum concurrent component instancesmaxCoreInstancesPerComponent- max core instances per componenttotalGcHeaps- maximum concurrent GC heapsmaxMemorySize- maximum memory size for any memory in the pool
-
PanamaPoolingAllocatorConfig
public PanamaPoolingAllocatorConfig(int instancePoolSize, long maxMemoryPerInstance, int stackSize, int maxStacks, int maxTablesPerInstance, int maxTablesPerComponent, int maxTables, boolean memoryDecommitEnabled, boolean poolWarmingEnabled, float poolWarmingPercentage, int totalCoreInstances, int totalComponentInstances, int maxCoreInstancesPerComponent, int totalGcHeaps, long maxMemorySize, int maxUnusedWarmSlots, int decommitBatchSize, long linearMemoryKeepResident, long tableKeepResident, long asyncStackKeepResident, int totalMemories, long maxCoreInstanceSize, long maxComponentInstanceSize, int maxMemoriesPerModule, int maxMemoriesPerComponent, int tableElements, ai.tegmentum.wasmtime4j.config.Enabled memoryProtectionKeysEnabled, int maxMemoryProtectionKeys, ai.tegmentum.wasmtime4j.config.Enabled pagemapScanEnabled) Creates a new PanamaPoolingAllocatorConfig with all 29 parameters.- Parameters:
instancePoolSize- the number of instances in the poolmaxMemoryPerInstance- maximum memory per instance in bytesstackSize- stack size for WebAssembly execution in bytesmaxStacks- maximum number of stacks in the poolmaxTablesPerInstance- maximum tables per instancemaxTablesPerComponent- maximum tables per componentmaxTables- maximum total tables in the poolmemoryDecommitEnabled- whether memory decommit optimization is enabledpoolWarmingEnabled- whether pool warming is enabled on startuppoolWarmingPercentage- the pool warming percentage (0.0 to 1.0)totalCoreInstances- maximum concurrent core module instancestotalComponentInstances- maximum concurrent component instancesmaxCoreInstancesPerComponent- max core instances per componenttotalGcHeaps- maximum concurrent GC heapsmaxMemorySize- maximum memory size for any memory in the poolmaxUnusedWarmSlots- maximum unused warm slotsdecommitBatchSize- decommit batch sizelinearMemoryKeepResident- linear memory keep resident sizetableKeepResident- table keep resident sizeasyncStackKeepResident- async stack keep resident sizetotalMemories- total memories in the poolmaxCoreInstanceSize- max core instance sizemaxComponentInstanceSize- max component instance sizemaxMemoriesPerModule- max memories per modulemaxMemoriesPerComponent- max memories per componenttableElements- max table elementsmemoryProtectionKeysEnabled- whether MPK is enabledmaxMemoryProtectionKeys- max memory protection keyspagemapScanEnabled- whether pagemap scan is enabled
-