Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

sc-executor-wasmtime: upgrade wasmtime to 0.30.0 #10003

Merged
3 commits merged into from
Oct 12, 2021
Merged

Conversation

slumber
Copy link
Contributor

@slumber slumber commented Oct 11, 2021

Resolves #9605
Resolves #9606

polkadot companion: paritytech/polkadot#4063

Changes related to memory64 proposal implementation,
for additional details see bytecodealliance/wasmtime#3153
@slumber slumber added A3-in_progress Pull request is in progress. No review needed at this stage. B5-clientnoteworthy C1-low PR touches the given topic and has a low impact on builders. labels Oct 11, 2021
@slumber slumber marked this pull request as ready for review October 11, 2021 18:13
@github-actions github-actions bot added A0-please_review Pull request needs code review. A7-needspolkadotpr and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Oct 11, 2021
@slumber slumber requested a review from pepyakin October 11, 2021 18:30
///
/// The default is `None`.
pub max_memory_pages: Option<u32>,
pub max_memory_size: Option<usize>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not continue to use pages here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be aligned with wasmtime interface and avoid intermediate layer of converting it to bytes.
The change in upstream also makes sense, the reasoning (link in the first commit):

The runtime implementation of mmap-based linear memories has changed
to largely work in usize quantities in its API and in bytes instead
of pages. This simplifies various aspects and reflects that
mmap-memories are always bound by usize since that's what the host
is using to address things, and additionally most calculations care
about bytes rather than pages except for the very edge where we're
going to/from wasm.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay :)

@pepyakin
Copy link
Contributor

bot merge

@ghost
Copy link

ghost commented Oct 12, 2021

Trying merge.

@ghost ghost merged commit 66f0008 into master Oct 12, 2021
@ghost ghost deleted the slumber-bump-wasmtime branch October 12, 2021 15:15
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
3 participants