-
Notifications
You must be signed in to change notification settings - Fork 275
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 fifocache evict for 1.2 #16451
Fix fifocache evict for 1.2 #16451
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Review 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
@LeftHandCold Thanks for your contributions! Pull Request Review:Title:The title "Fix fifocache evict for 1.2" is clear and indicates the purpose of the pull request. Body:The body of the pull request provides useful information about the type of PR, the related issue, and a brief description of the changes made. It also includes a walkthrough of the changes with a link to the specific file modified. Changes Made:
Feedback and Suggestions:
In conclusion, the pull request addresses a specific memory leak issue in the FIFO cache eviction process. By ensuring that dequeued values are properly zeroed out, the risk of memory leaks is mitigated. To enhance the quality of the codebase further, consider incorporating the suggestions provided above and conducting thorough testing to validate the fix. |
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #16443
What this PR does / why we need it:
When the cache evicts, although the values in cache's shards are deleted,
there are still references in queue1, so fix.
PR Type
Bug fix
Description
Changes walkthrough 📝
queue.go
Fix lingering references in FIFO cache eviction
pkg/fileservice/fifocache/queue.go
references.