Skip to content

[wasm-opt] Global variables are not shared between threads, so using wasm-opt --multi-memory-lowering will cause memory corruption. #7916

@oligamiq

Description

@oligamiq

Please ignore this comment and read on.
Currently, --multi-memory-lowering seems to handle memory allocation in the Min memory.
However, in practice, it would be more natural if the allocation could adapt to the Max memory size specified for the module.

However, this may become excessively large, so it would be preferable if it could be configurable.
Since this would break compatibility, it would likely require introducing a new command.

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