Skip to content
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

Fix Windows crash on caching compiled artifact. #428

Merged
merged 1 commit into from
May 8, 2019

Conversation

repi
Copy link
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
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
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
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