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

fix(symcache): Use saturating addition in writer #883

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

loewenheim
Copy link
Contributor

Addition wraps in release mode. For large line size values, this resulted in ranges whose end was before their start, which caused us to skip a function's inlinees in some cases.

Instead of using bare addition on u64 and casting to u32 at the end, we now use saturating addition on u32 directly.

Addition wraps in release mode. For large line size values,
this resulted in ranges whose end was before their start,
which caused us to skip a function's inlinees in some cases.

Instead of using bare addition on `u64` and casting to `u32`
at the end, we now use saturating addition on `u32` directly.
Copy link
Member

@jjbayer jjbayer left a comment

Choose a reason for hiding this comment

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

Would it be easy to add a unit test for this?

symbolic-symcache/src/writer.rs Outdated Show resolved Hide resolved
@loewenheim loewenheim merged commit 7859492 into master Dec 18, 2024
13 checks passed
@loewenheim loewenheim deleted the fix/symcache-inlinees branch December 18, 2024 13:28
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.

Show multiple levels of source-line mapping for C++ stack traces
3 participants