Skip to content

Loosen conditions on MemoryPacking#2205

Merged
tlively merged 3 commits into
WebAssembly:masterfrom
tlively:mem-pack-bulk-memory
Jul 3, 2019
Merged

Loosen conditions on MemoryPacking#2205
tlively merged 3 commits into
WebAssembly:masterfrom
tlively:mem-pack-bulk-memory

Conversation

@tlively

@tlively tlively commented Jul 2, 2019

Copy link
Copy Markdown
Member

Allow MemoryPacking to run when there are no passive segments, even if
bulk memory is enabled.

Fixes #2196.

Allow MemoryPacking to run when there are no passive segments, even if
bulk memory is enabled.
@tlively tlively requested a review from kripken July 2, 2019 23:36

@kripken kripken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

About the test - is bulk memory on by default? I'm not sure why the old test had it disabled. I thought no features were on by default?

// Conservatively refuse to change segments if bulk memory is enabled to
// avoid invalidating segment indices or segment contents referenced from
if (!module->memory.exists)
return;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ } if not on the same line.

@aheejin didn't we have clang-tidy check for that?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do. Travis CI is pending now, but once it runs it will error out.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, and sorry I didn't notice it was still pending.

@tlively

tlively commented Jul 3, 2019

Copy link
Copy Markdown
Member Author

The test must have been a holdover from when all features were enabled by default. I guess we should go through and make sure there aren't any others.

@kripken

kripken commented Jul 3, 2019

Copy link
Copy Markdown
Member

lgtm

@tlively tlively merged commit f82e708 into WebAssembly:master Jul 3, 2019
@tlively tlively deleted the mem-pack-bulk-memory branch July 3, 2019 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MemoryPacking should support running with bulk-memory enabled

3 participants