Repository navigation
Don't rely on Global handing out dangling pointers - #164034
Conversation
|
Probably going to regress debug mode/compile times. If it's too unreasonable, we can add private helper methods to @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Don't rely on `Global` handing out dangling pointers
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
22c4772 to
eece26e
Compare
|
@bors try @rust-timer queue |
This comment was marked as resolved.
This comment was marked as resolved.
This comment has been minimized.
This comment has been minimized.
Don't rely on `Global` handing out dangling pointers
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (086d3bd): comparison URL. Overall result: ❌✅ regressions and improvements - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 1.9%, secondary 3.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -0.4%, secondary 2.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.0%, secondary 0.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 490.84s -> 494.804s (0.81%) |
|
Well that's nice r? clarfonthey |
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Thank you rustbot for adding two reviewers |
|
I guess this didn't regress because we never mir inline this function, and llvm is smarter than mir-opt |
|
So, just to get a read on this, we wouldn't need to backport this since |
|
This is the only place in std where we did this, and yes, it is correct atm, so no backport needed. |
|
@bors r+ rollup |
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing a5c142a (parent) -> 34f4a80 (this PR) Test differencesShow 244 test diffs244 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 34f4a807e2d84184fff4e42d4539092569b6fcd6 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (34f4a80): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 0.8%, secondary -2.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis perf run didn't have relevant results for this metric. Binary sizeResults (primary -0.0%, secondary 0.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 486.952s -> 489.09s (0.44%) |
View all comments
This code is incorrect and will leak memory once the global allocator supports zero-sized allocations, since
Boxdoesn't deallocate zero-sized layouts