Skip to content

Fix memo table growth condition #850

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

Merged
merged 1 commit into from
May 8, 2025

Conversation

ibraheemdev
Copy link
Contributor

@ibraheemdev ibraheemdev commented May 7, 2025

The additional_len calculation assumes that memos.len() <= memo_ingredient_index, which is not true in light of concurrent inserts. We're seeing spurious overflow panics because of this. It looks like this was changed in #803.

Copy link

netlify bot commented May 7, 2025

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit ecb53cb
🔍 Latest deploy log https://app.netlify.com/sites/salsa-rs/deploys/681bdb5d443d5f0008729719

Copy link

codspeed-hq bot commented May 7, 2025

CodSpeed Performance Report

Merging #850 will not alter performance

Comparing ibraheemdev:memo-table-race (ecb53cb) with master (cfa88e9)

Summary

✅ 12 untouched benchmarks

Copy link
Contributor

@carljm carljm 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!!

@Veykril Veykril added this pull request to the merge queue May 8, 2025
Merged via the queue into salsa-rs:master with commit 2c86936 May 8, 2025
11 checks passed
@github-actions github-actions bot mentioned this pull request May 8, 2025
sharkdp added a commit to astral-sh/ruff that referenced this pull request May 8, 2025
## Summary

* Update salsa to pull in salsa-rs/salsa#850.
* Some refactoring of salsa event callbacks in various `Db`'s due to
salsa-rs/salsa#849

closes astral-sh/ty#108

## Test Plan

Ran `cargo run --bin ty -- -vvv` on a test file to make sure that salsa
Events are still logged.
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.

3 participants