-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Optimize catch_unwind to match C++ try/catch #67502
Merged
Merged
Commits on Mar 2, 2020
-
Inline catching panics into std::catch_unwind
This allows LLVM to inline the happy path, such that catching unwinding is zero-cost when no panic occurs. This also allows us to match the code generated by C++ try/catch.
Configuration menu - View commit details
-
Copy full SHA for d45ce5a - Browse repository at this point
Copy the full SHA d45ce5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1920f81 - Browse repository at this point
Copy the full SHA 1920f81View commit details -
We execpt the try intrinsic to be a direct call if in -Cpanic=abort mode, and that catch_unwind optimizes out if calling a function that does not unwind.
Configuration menu - View commit details
-
Copy full SHA for 919c5fe - Browse repository at this point
Copy the full SHA 919c5feView commit details -
Configuration menu - View commit details
-
Copy full SHA for dd6c3b7 - Browse repository at this point
Copy the full SHA dd6c3b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for bdcc023 - Browse repository at this point
Copy the full SHA bdcc023View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b68235 - Browse repository at this point
Copy the full SHA 5b68235View commit details -
Configuration menu - View commit details
-
Copy full SHA for 35349ab - Browse repository at this point
Copy the full SHA 35349abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 01d0494 - Browse repository at this point
Copy the full SHA 01d0494View commit details -
Configuration menu - View commit details
-
Copy full SHA for 61b67d0 - Browse repository at this point
Copy the full SHA 61b67d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d73813a - Browse repository at this point
Copy the full SHA d73813aView commit details
Commits on Mar 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for f4f91f0 - Browse repository at this point
Copy the full SHA f4f91f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5953c10 - Browse repository at this point
Copy the full SHA 5953c10View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c950e5 - Browse repository at this point
Copy the full SHA 1c950e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e3467c - Browse repository at this point
Copy the full SHA 8e3467cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 04f24b7 - Browse repository at this point
Copy the full SHA 04f24b7View commit details
Commits on Mar 7, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 9f3679f - Browse repository at this point
Copy the full SHA 9f3679fView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.