Skip to content

Do size modifications after iterator transfer strategy selection - #129

Merged
Billy O'Neal (BillyONeal) merged 1 commit into
microsoft:masterfrom
BillyONeal:list_splice
Sep 24, 2019
Merged

Billy O'Neal (BillyONeal) merged 1 commit into
microsoft:masterfrom
BillyONeal:list_splice

Conversation

@BillyONeal

@BillyONeal Billy O'Neal (BillyONeal) commented Sep 24, 2019 •

Copy link
Copy Markdown
Member

Description

This was the cause of the DevCom reported bug:

https://developercommunity.visualstudio.com/content/problem/739698/vc-163-listsplice-bug.html

where we would choose the incorrect strategy to transfer iterators if and only if the number of transferred iterators was exactly half of the container.

This change replicates internal PR 203902

Checklist:

  • I understand README.md.
  • Any code files edited have been processed by clang-format 8.0.1.
    (The version is important because clang-format's behavior sometimes changes.)
  • Identifiers in any product code changes are properly _Ugly as per
    https://eel.is/c++draft/lex.name#3.1 .
  • Identifiers in test code changes are not _Ugly.
  • Test code includes the correct headers as per the Standard, not just
    what happens to compile.
  • The STL builds and test harnesses have passed (must be manually verified
    by an STL maintainer before CI is online, leave this unchecked for initial
    submission).
  • This change introduces no known ABI breaks (adding members, renaming
    members, adding virtual functions, changing whether a type is an aggregate or
    trivially copyable, etc.). If unsure, leave this box unchecked and ask a
    maintainer for help.

This was the cause of the DevCom reported bug:

https://developercommunity.visualstudio.com/content/problem/739698/vc-163-listsplice-bug.html

where we would choose the incorrect strategy to transfer iterators if and only if the number of transferred iterators was exactly half of the container.

This change replicates internal [PR 203902](https://devdiv.visualstudio.com/DevDiv/_git/msvc/pullrequest/203902)
@BillyONeal
Billy O'Neal (BillyONeal) requested a review from a team as a code owner September 24, 2019 02:30
@BillyONeal
Billy O'Neal (BillyONeal) merged commit 44720cd into microsoft:master Sep 24, 2019
@BillyONeal
Billy O'Neal (BillyONeal) deleted the list_splice branch September 24, 2019 10:23
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