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

Support virtual memory usage on windows #274

Merged
merged 20 commits into from
Dec 9, 2021

Conversation

Robbepop
Copy link
Member

@Robbepop Robbepop commented Dec 8, 2021

Implements #200.

Summary

  • Enabling virtual_memory crate feature enables cross-platform virtual memory on 64-bit platforms.
  • On 32-bit platforms we are falling back onto using the Vec-based implementation. This has several reasons:
    1. We want to keep the (initial) virtual memory implementation small and simple.
    2. What we did so far with respect to mmap usage in wasmi is not expected to yield performance improvements due to a huge overhead with re-allocations and copying over all data upon a grow operation.

@Robbepop Robbepop requested review from athei and pepyakin December 8, 2021 18:28
src/memory/mmap_bytebuf.rs Show resolved Hide resolved
src/memory/mmap_bytebuf.rs Outdated Show resolved Hide resolved
src/memory/mod.rs Outdated Show resolved Hide resolved
…memory-for-windows

# Conflicts:
#	.github/workflows/rust.yml
src/memory/mmap_bytebuf.rs Outdated Show resolved Hide resolved
src/memory/mmap_bytebuf.rs Outdated Show resolved Hide resolved
src/memory/mmap_bytebuf.rs Show resolved Hide resolved
src/memory/mmap_bytebuf.rs Outdated Show resolved Hide resolved
src/memory/mmap_bytebuf.rs Show resolved Hide resolved
@Robbepop Robbepop merged commit cd69711 into master Dec 9, 2021
@kpp kpp mentioned this pull request Dec 10, 2021
@bkchr bkchr deleted the rf-virtual-memory-for-windows branch December 10, 2021 11:12
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.

4 participants