Stream: git-wasmtime

Topic: wasmtime / PR #3598 Add a compilation section to disable ...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2021 at 17:02):

alexcrichton opened PR #3598 from smaller-compiled-modules to main:

This commit adds a new Config::generate_address_map compilation
setting which is used to disable emission of the .wasmtime.addrmap
section of compiled artifacts. This section is currently around the size
of the entire .text section itself unfortunately and for size reasons
may wish to be omitted. Functionality-wise all that is lost is knowing
the precise wasm module offset address of a faulting instruction or in a
backtrace of instructions. This also means that if the module has DWARF
debugging information available with it Wasmtime isn't able to produce a
filename and line number in the backtrace.

This option remains enabled by default. This option may not be needed in
the future with #3547 perhaps, but in the meantime it seems reasonable
enough to support a configuration mode where the section is entirely
omitted if the smallest module possible is desired.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2021 at 17:25):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2021 at 17:25):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2021 at 17:25):

fitzgen created PR review comment:

fn traps_without_address_map() -> Result<()> {

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2021 at 17:36):

alexcrichton updated PR #3598 from smaller-compiled-modules to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2021 at 17:37):

alexcrichton updated PR #3598 from smaller-compiled-modules to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2021 at 18:06):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2021 at 18:54):

alexcrichton updated PR #3598 from smaller-compiled-modules to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2021 at 19:37):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2021 at 19:48):

alexcrichton merged PR #3598.


Last updated: Oct 23 2024 at 20:03 UTC