Skip to content

Fix Windows crash on caching compiled artifact.#428

Merged
bors[bot] merged 1 commit intowasmerio:masterfrom
EmbarkStudios:windows-memory-clone-crash
May 8, 2019
Merged

Fix Windows crash on caching compiled artifact.#428
bors[bot] merged 1 commit intowasmerio:masterfrom
EmbarkStudios:windows-memory-clone-crash

Conversation

@repi
Copy link
Copy Markdown
Contributor

@repi repi commented May 8, 2019

Memory clone function wasn't able to write to new reserved memory object.

Changed so allocating Memory objects with protection flag allocates commited memory. And added unit test to verify that it doedsn't crash anymore.

Not fully sure this is the best solution though, but fixes this specific clone crash.

Memory clone function wasn't able to write to new reserved memory object.

Changed so allocating Memory objects with protection flag allocates commited memory.
@repi repi force-pushed the windows-memory-clone-crash branch from abbbe77 to 36a78a2 Compare May 8, 2019 13:59
Copy link
Copy Markdown
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

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

It looks great!

@syrusakbary
Copy link
Copy Markdown
Member

bors r+

bors bot added a commit that referenced this pull request May 8, 2019
428: Fix Windows crash on caching compiled artifact. r=syrusakbary a=repi

Memory clone function wasn't able to write to new reserved memory object.

Changed so allocating Memory objects with protection flag allocates commited memory. And added unit test to verify that it doedsn't crash anymore.

Not fully sure this is the best solution though, but fixes this specific clone crash.

Co-authored-by: Johan Andersson <repi@repi.se>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented May 8, 2019

@bors bors bot merged commit 36a78a2 into wasmerio:master May 8, 2019
surban pushed a commit to rust-wasi-web/wwrr that referenced this pull request Nov 9, 2024
fix: Publish packages and make linter happy
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.

2 participants