Skip to content

[JS Generator] Add scope for each wasm instance #1698

@LiuYu396

Description

@LiuYu396

The live range of the wasm instance created by JS Generator is global, likes:

let $1 = instance(...);
assert...($1, ...);
let $2 = instance(...);
assert...($2, ...);

Tests such as memory_copy.wast and memory_init.wast, usually contain many instances. When executing these tests on some machines, out of memory fails may be reported.

Can you add a scope to each instance so that they are destroyed after use ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions