Skip to content

Remove the wasmtime_environ::MemoryPlan type#9532

Merged
alexcrichton merged 2 commits intobytecodealliance:mainfrom
alexcrichton:remove-memory-plan
Oct 31, 2024
Merged

Remove the wasmtime_environ::MemoryPlan type#9532
alexcrichton merged 2 commits intobytecodealliance:mainfrom
alexcrichton:remove-memory-plan

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This is the equivalent of #9530 for memories. The goal of this commit is to eventually remove the abstraction layer of MemoryPlan and MemoryStyle in favor of directly reading the configuration of Tunables. The prediction is that it will be simpler to work directly with configured values instead of a layer of abstraction between the configuration and the runtime which needs to be evolved independently to capture how to interpret the configuration.

Like with #9530 my plan is to eventually remove the MemoryStyle type itself, but that'll be a larger change, so it's deferred to a future PR.

@alexcrichton alexcrichton requested review from a team as code owners October 31, 2024 18:37
@alexcrichton alexcrichton requested review from elliottt and removed request for a team October 31, 2024 18:37
This is the equivalent of bytecodealliance#9530 for memories. The goal of this commit is
to eventually remove the abstraction layer of `MemoryPlan` and
`MemoryStyle` in favor of directly reading the configuration of
`Tunables`. The prediction is that it will be simpler to work directly
with configured values instead of a layer of abstraction between the
configuration and the runtime which needs to be evolved independently to
capture how to interpret the configuration.

Like with bytecodealliance#9530 my plan is to eventually remove the `MemoryStyle` type
itself, but that'll be a larger change, so it's deferred to a future
PR.
@alexcrichton alexcrichton added this pull request to the merge queue Oct 31, 2024
Merged via the queue into bytecodealliance:main with commit 2a7f065 Oct 31, 2024
@alexcrichton alexcrichton deleted the remove-memory-plan branch October 31, 2024 21:01
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