Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

linear memory via mmap #228

Closed
frehberg opened this issue Oct 15, 2018 · 1 comment
Closed

linear memory via mmap #228

frehberg opened this issue Oct 15, 2018 · 1 comment

Comments

@frehberg
Copy link
Contributor

linear memory is located in virtual memory o process.
growing the linear memory may require to re-alloc complete array and copying from old to new, larger one.

Instead mmap should be used to reserve the virtual linear memory, mapping it directly onto physical memory pages; this way linear could grow without re-alloc, but just mapping additional physical memory pages into the consecutive mmap-memory address space.

@NikVolf
Copy link
Contributor

NikVolf commented Oct 15, 2018

Hi, sure, this is the issue we have in wasmi interpreter!
wasmi-labs/wasmi#45

@NikVolf NikVolf closed this as completed Oct 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants