Stream: git-wasmtime

Topic: wasmtime / PR #3240 Move address maps to a section of the...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 25 2021 at 15:01):

alexcrichton opened PR #3240 from address-map-binary to main:

This commit moves the address_map field of FunctionInfo into a
custom-encoded section of the executable. The goal of this commit is, as
previous commits, to push less data through bincode. The address_map
field is actually extremely large and has huge benefits of not being
decoded when we load a module. This data is only used for traps and such
as well, so it's not overly important that it's massaged in to precise
data the runtime can extremely speedily use.

The FunctionInfo type does retain a tiny bit of information about the
function itself (it's start source location), but other than that the
FunctionAddressMap structure is moved from wasmtime-environ to
wasmtime-cranelift since it's now no longer needed outside of that
context.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Aug 25 2021 at 15:02):

alexcrichton edited PR #3240 from address-map-binary to main:

This commit moves the address_map field of FunctionInfo into a
custom-encoded section of the executable. The goal of this commit is, as
previous commits, to push less data through bincode. The address_map
field is actually extremely large and has huge benefits of not being
decoded when we load a module. This data is only used for traps and such
as well, so it's not overly important that it's massaged in to precise
data the runtime can extremely speedily use.

The FunctionInfo type does retain a tiny bit of information about the
function itself (it's start source location), but other than that the
FunctionAddressMap structure is moved from wasmtime-environ to
wasmtime-cranelift since it's now no longer needed outside of that
context.

cc #3230

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Aug 25 2021 at 15:25):

alexcrichton updated PR #3240 from address-map-binary to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 26 2021 at 14:17):

alexcrichton requested peterhuene for a review on PR #3240.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 26 2021 at 21:55):

alexcrichton updated PR #3240 from address-map-binary to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 27 2021 at 01:34):

peterhuene submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 27 2021 at 01:34):

peterhuene submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 27 2021 at 01:34):

peterhuene created PR review comment:

    /// pc transformed to a relative offset within the text section.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 27 2021 at 02:19):

alexcrichton updated PR #3240 from address-map-binary to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 27 2021 at 04:06):

alexcrichton merged PR #3240.


Last updated: Nov 22 2024 at 17:03 UTC