Mrmaxmeier opened PR #3670 from expose-default-memory-creator
to main
:
This exposes the standard implementation of
RuntimeMemoryCreator
in wasmtime_runtime's API and thus allows indirectly using the handy but privateMmapMemory
implementation.
ExposingDefaultMemoryCreator
inwasmtime-runtime
seems mostly harmless. Feel free to reject this though and/or yell at me for not opening an issue first.
Memories can also be created with
OnDemandInstanceAllocator
(pub) which can fall back toDefaultMemoryCreator
internally.
This requires passing in aModule
though, which might not be relevant when looking to create memories.
alexcrichton submitted PR review.
alexcrichton merged PR #3670.
Last updated: Dec 23 2024 at 12:05 UTC