-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Add more debug assertions to unsafe functions #105117
Conversation
r? @m-ou-se (rustbot has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
This comment has been minimized.
This comment has been minimized.
FYI, in #92686 I deliberately avoided adding assertions to some functions because their preconditions were shared with a callee. It's quite possible this decision has aged poorly. |
I'm having trouble reproducing the CI failure locally. What config and command do I need to run to emulate the CI run? I've tried the |
Actually, on second look, it appears the Arc/Rc debug assertions would be too strict, so I've reverted that change. |
|
Are you referring to anything in particular in this PR? |
No, I'm just offering a potential explanation of why some of the |
FYI for anyone coming to this: I have removed the problematic assertions previously discussed. Now this PR only adds a bounds check to |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 09f8885 with merge d2d06001a083c00f1d66b9dcdf0e98f128499dc0... |
@rust-timer build d2d06001a083c00f1d66b9dcdf0e98f128499dc0 |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (d2d06001a083c00f1d66b9dcdf0e98f128499dc0): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (7820b62): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
Previous perf run looked good and those benchmarks are bimodal. @rustbot label: +perf-regression-triaged |
related to #51713