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

Avoid unnecessary handling in _ReportUnobservedException #3909

Merged
merged 7 commits into from
Aug 1, 2023

Conversation

AlexGuteniev
Copy link
Contributor

@AlexGuteniev AlexGuteniev commented Jul 28, 2023

Towards #3888

Changes:

  • In the preprocessor condition, added pre-Win8 check. Starting in Windows8, __fastfail is always available. Mostly added as a reminder that this should be cleaned up further when dropping pre-Win8.
  • Changed terminate to abort as discussed in Consider unifying existing practices of don't-call functions #3888 (comment)
  • Restructured the flow to avoid calling abort() if always calling __fastfail. IMO, the compiler should make the assumption that __fastfail does not return by itself, added DevCom-10425806.

@AlexGuteniev AlexGuteniev requested a review from a team as a code owner July 28, 2023 11:14
stl/src/ppltasks.cpp Outdated Show resolved Hide resolved
@CaseyCarter CaseyCarter added the enhancement Something can be improved label Jul 28, 2023
Copy link
Contributor

@CaseyCarter CaseyCarter left a comment

Choose a reason for hiding this comment

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

Just some non-functional changes that I'll go ahead and push.

stl/src/ppltasks.cpp Outdated Show resolved Hide resolved
stl/src/ppltasks.cpp Outdated Show resolved Hide resolved
stl/src/ppltasks.cpp Outdated Show resolved Hide resolved
stl/src/ppltasks.cpp Outdated Show resolved Hide resolved
stl/src/ppltasks.cpp Outdated Show resolved Hide resolved
@AlexGuteniev AlexGuteniev requested a review from sam20908 July 30, 2023 12:36
@StephanTLavavej StephanTLavavej self-assigned this Jul 31, 2023
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit fc444ce into microsoft:main Aug 1, 2023
@StephanTLavavej
Copy link
Member

😵 💥 ⚠️

@AlexGuteniev AlexGuteniev deleted the fail_faster branch August 2, 2023 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something can be improved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants