Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve handling of strings for backtraces #843

Merged
merged 2 commits into from
Jan 24, 2020

Conversation

alexcrichton
Copy link
Member

Largely avoid storing strings at all in the wasmtime-* internal
crates, and instead only store strings in a separate global cache
specific to the wasmtime crate itself. This global cache is inserted
and removed from dynamically as modules are created and deallocated, and
the global cache is consulted whenever a Trap is created to
symbolicate any wasm frames.

This also avoids the need to thread module_name through the jit crates
and back, and additionally removes the need for ModuleSyncString.

Largely avoid storing strings at all in the `wasmtime-*` internal
crates, and instead only store strings in a separate global cache
specific to the `wasmtime` crate itself. This global cache is inserted
and removed from dynamically as modules are created and deallocated, and
the global cache is consulted whenever a `Trap` is created to
symbolicate any wasm frames.

This also avoids the need to thread `module_name` through the jit crates
and back, and additionally removes the need for `ModuleSyncString`.
@alexcrichton
Copy link
Member Author

ping @yurydelendik, mind taking a look at this?

Copy link
Contributor

@yurydelendik yurydelendik left a comment

Choose a reason for hiding this comment

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

Thank you for the patch!

@alexcrichton alexcrichton merged commit 3db1074 into bytecodealliance:master Jan 24, 2020
@alexcrichton alexcrichton deleted the less-strings branch January 24, 2020 17:53
arkpar pushed a commit to paritytech/wasmtime that referenced this pull request Mar 4, 2020
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