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

    Constructors
    Constructor
    Description
    Creates 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 pool
      maxMemoryPerInstance - maximum memory per instance in bytes
      stackSize - stack size for WebAssembly execution in bytes
      maxStacks - maximum number of stacks in the pool
      maxTablesPerInstance - maximum tables per instance
      maxTables - maximum total tables in the pool
      memoryDecommitEnabled - whether memory decommit optimization is enabled
      poolWarmingEnabled - whether pool warming is enabled on startup
      poolWarmingPercentage - the pool warming percentage (0.0 to 1.0)
      totalCoreInstances - maximum concurrent core module instances
      totalComponentInstances - maximum concurrent component instances
      maxCoreInstancesPerComponent - max core instances per component
      totalGcHeaps - maximum concurrent GC heaps
      maxMemorySize - 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 pool
      maxMemoryPerInstance - maximum memory per instance in bytes
      stackSize - stack size for WebAssembly execution in bytes
      maxStacks - maximum number of stacks in the pool
      maxTablesPerInstance - maximum tables per instance
      maxTablesPerComponent - maximum tables per component
      maxTables - maximum total tables in the pool
      memoryDecommitEnabled - whether memory decommit optimization is enabled
      poolWarmingEnabled - whether pool warming is enabled on startup
      poolWarmingPercentage - the pool warming percentage (0.0 to 1.0)
      totalCoreInstances - maximum concurrent core module instances
      totalComponentInstances - maximum concurrent component instances
      maxCoreInstancesPerComponent - max core instances per component
      totalGcHeaps - maximum concurrent GC heaps
      maxMemorySize - maximum memory size for any memory in the pool
      maxUnusedWarmSlots - maximum unused warm slots
      decommitBatchSize - decommit batch size
      linearMemoryKeepResident - linear memory keep resident size
      tableKeepResident - table keep resident size
      asyncStackKeepResident - async stack keep resident size
      totalMemories - total memories in the pool
      maxCoreInstanceSize - max core instance size
      maxComponentInstanceSize - max component instance size
      maxMemoriesPerModule - max memories per module
      maxMemoriesPerComponent - max memories per component
      tableElements - max table elements
      memoryProtectionKeysEnabled - whether MPK is enabled
      maxMemoryProtectionKeys - max memory protection keys
      pagemapScanEnabled - whether pagemap scan is enabled