Uh oh!
There was an error while loading. Please reload this page.
Fix a layout possible miscalculation in alloc::RawVec - #83706
Conversation
rust-highfive
commented
Mar 31, 2021
(rust-highfive has picked a reviewer for you, use r? to override) |
bjorn3
commented
Mar 31, 2021
I don't think so.
Makes sense.
I found at least one other place that used |
JohnTitor
left a comment
There was a problem hiding this comment.
This seems reasonable and I agree that we should also take a look at shrink:
rust/library/alloc/src/raw_vec.rs
Lines 470 to 479 in 451e98e
r=me once it's addressed.
Ping from triage:
Can you please address this |
117b686 to
fe942c2Comparea1phyr
commented
Aug 2, 2021
Done, also fixed |
Uh oh!
There was an error while loading. Please reload this page.
bors
commented
Aug 7, 2021
☔ The latest upstream changes (presumably #87408) made this pull request unmergeable. Please resolve the merge conflicts. |
fe942c2 to
e7f1c8eComparea1phyr
commented
Aug 7, 2021
Rebased |
JohnTitor
commented
Aug 7, 2021
Sorry for the delay! |
bors
commented
Aug 7, 2021
📌 Commit 03498aa has been approved by |
JohnTitor
commented
Feb 14, 2022
@bors r+ |
bors
commented
Feb 14, 2022
📌 Commit 5376317 has been approved by |
bors
commented
Feb 14, 2022
⌛ Testing commit 5376317 with merge a8c401d99a45662953660cbbfa4c093d3356968a... |
rust-log-analyzer
commented
Feb 14, 2022
bors
commented
Feb 14, 2022
💔 Test failed - checks-actions |
a1phyr
commented
Feb 21, 2022
There is no hint at what failed... How I am supposed to fix that ? |
JohnTitor
commented
Feb 22, 2022
Seems a spurious failure? @bors retry |
bors
commented
Feb 22, 2022
⌛ Testing commit 5376317 with merge ed9196e48a1c25c95588058b775e6c71cd47eb83... |
rust-log-analyzer
commented
Feb 22, 2022
The job Click to see the possible cause of the failure (guessed by this bot) |
bors
commented
Feb 22, 2022
💔 Test failed - checks-actions |
JohnTitor
commented
Feb 22, 2022
Uhm, another spurious failure came up... @bors retry |
bors
commented
Feb 22, 2022
bors
commented
Feb 23, 2022
☀️ Test successful - checks-actions |
rust-timer
commented
Feb 23, 2022
Finished benchmarking commit (5bd1ec3): comparison url. Summary: This benchmark run shows 54 relevant regressions 😿 to instruction counts.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression |
rylev
commented
Feb 24, 2022
@JohnTitor@a1phyr the perf regressions are somewhat small but still there are enough of them to warrant a check in on what's going on. I assume a small perf regression would be expected since we're now strictly doing more (e.g., checked multiplication), but is the magnitude of the regression here expected? |
A layout miscalculation could happen in
RawVecwhen used with a type whose size isn't a multiple of its alignment. I don't know if such type can exist in Rust, but the Layout API provides ways to manipulate such types. Anyway, it is better to calculate memory size in a consistent way.