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

v1.17: direct_mapping: fix iter_memory_pair_chunks in reverse mode (backport of #34204) #34236

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 27, 2023

This is an automatic backport of pull request #34204 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

iter_memory_pair_chunks was iterating regions in reverse, but not memory
_within_ regions in reverse.

This commit fixes the issue and simplifies the implementation by removing
nested loops which made control flow hard to reason about.

(cherry picked from commit 0908882)
Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Merging #34236 (c1d2880) into v1.17 (b12ee21) will decrease coverage by 0.1%.
The diff coverage is 98.7%.

Additional details and impacted files
@@            Coverage Diff            @@
##            v1.17   #34236     +/-   ##
=========================================
- Coverage    81.8%    81.8%   -0.1%     
=========================================
  Files         803      803             
  Lines      217995   218013     +18     
=========================================
- Hits       178471   178462      -9     
- Misses      39524    39551     +27     

@alessandrod alessandrod merged commit 4d79fd7 into v1.17 Nov 27, 2023
31 checks passed
@alessandrod alessandrod deleted the mergify/bp/v1.17/pr-34204 branch November 27, 2023 22:53
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.

2 participants