Skip to content

Rework memory options #1268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 14, 2020
Merged

Rework memory options #1268

merged 2 commits into from
May 14, 2020

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented May 14, 2020

This PR fixes #1242 by reworking the memory options available on the command line:

  • --noExportMemory does not export the memory.
  • --initialMemory PAGES sets the initial memory size in pages.
  • --maximumMemory PAGES sets the maximum memory size in pages.
  • --sharedMemory declares memory as shared. Requires maximumMemory.

The first three options just override otherwise default behavior (exported by default, initial size is what's required, maximum size is allowed to grow to 4GB), so these are backwards compatible. The change to --sharedMemory is breaking, in that it previously required the maximum size of memory as an integer argument (as required by the spec), which is now a separate option, with sharedMemory now being a boolean flag.

@dcodeIO dcodeIO merged commit 7128bb2 into master May 14, 2020
@dcodeIO dcodeIO deleted the memory-config branch May 14, 2020 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add flags to disable exporting memory / set its initial size
1 participant