moving_filter: fix data race with cache result#6080
Conversation
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #6080 +/- ##
==========================================
- Coverage 74.10% 73.84% -0.26%
==========================================
Files 381 381
Lines 37809 37801 -8
==========================================
- Hits 28020 27916 -104
- Misses 7335 7416 +81
- Partials 2454 2469 +15
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: lhy1024 <admin@liudos.us>
|
Do you just revert the changes before? |
Use another way to reduce unnecessary memory in |
|
/merge |
|
@lhy1024: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: b8ef9f9 |
|
@lhy1024: Your PR was out of date, I have automatically updated it for you. If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: Close #6069
What is changed and how does it work?
after #5798 we use cache result in
median.Getto reduce memory, but it introduces a write operation inget, so we remove write op ingetfunction to avoid data race. And considering there is moregetthanadd, it still is valid to reduce memory and CPU time.Check List
Tests
Release note