Skip to content

Set INITIAL_MEMORY and MAXIMUM_MEMORY must -s ALLOW_MEMORY_GROWTH=1 ? #14667

@yangfangfang1204

Description

@yangfangfang1204

I Set INITIAL_MEMORY =100MB, and MAXIMUM_MEMORY = 1000MB, -s ALLOW_MEMORY_GROWTH=0
the .js is
new WebAssembly.Memory({"initial":INITIAL_MEMORY/65536,"maximum":INITIAL_MEMORY/65536,"shared":true});

and if i set -s ALLOW_MEMORY_GROWTH=1:
the .js is
new WebAssembly.Memory({"initial":INITIAL_MEMORY/65536,"maximum":1048576e3/65536,"shared":true});

so if i want to use the Memory greater than 100MB , i must set -s ALLOW_MEMORY_GROWTH=1 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions