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 the tcache flush sanity checking around ncached and nstashed. #2637

Merged
merged 1 commit into from Apr 12, 2024

Conversation

interwq
Copy link
Member

@interwq interwq commented Apr 12, 2024

When there were many items stashed, it's possible that after flushing stashed, ncached is already lower than the remain, in which case the flush can simply return at that point.

@banitag1 caught this assertion triggered with certain workloads.

@interwq interwq force-pushed the stash branch 5 times, most recently from 2c8cfdc to f8960e9 Compare April 12, 2024 19:29
Copy link
Contributor

@guangli-dai guangli-dai left a comment

Choose a reason for hiding this comment

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

Discussed offline, LGTM.

When there were many items stashed, it's possible that after flushing stashed,
ncached is already lower than the remain, in which case the flush can simply
return at that point.
@interwq interwq merged commit fa451de into jemalloc:dev Apr 12, 2024
67 of 68 checks passed
@interwq interwq deleted the stash branch April 12, 2024 23:01
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.

None yet

2 participants