Stream: git-wasmtime

Topic: wasmtime / PR #2877 Remove TLS lookup of the store on `Tr...


view this post on Zulip Wasmtime GitHub notifications bot (May 05 2021 at 21:09):

alexcrichton opened PR #2877 from less-tls to main:

This commit removes a TLS lookup of the store information whenever a
trap is created. This was previously done to lookup information in the
module registry, but nowadays there's a global registry which has all
the equivalent information as well. This commit moves around some code
in the module registry and then uses this global map when creating
traps.

This is not motivated by performance, and likely regresses performance
slightly since it involves taking a global lock now. That being said the
perf of creating a Trap is generally not super consequential, so this
is seen as ok.

The goal of this commit is to lessen Wasmtime's reliance on TLS for
store-based information. I'm hoping to lessen this even more with the
changes for bytecodealliance/rfcs#11, where acquiring a store via TLS is
going to be much more difficult if not possible any more.

<!--

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 (May 06 2021 at 16:19):

alexcrichton updated PR #2877 from less-tls to main.

view this post on Zulip Wasmtime GitHub notifications bot (May 06 2021 at 16:19):

alexcrichton updated PR #2877 from less-tls to main.

view this post on Zulip Wasmtime GitHub notifications bot (May 19 2021 at 15:07):

alexcrichton closed without merge PR #2877.


Last updated: Oct 23 2024 at 20:03 UTC