Uh oh!
There was an error while loading. Please reload this page.
Add support for allocators in Rc & Arc - #89132
Conversation
rust-highfive
commented
Sep 20, 2021
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @m-ou-se (or someone else) soon. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Cyborus04
commented
Sep 21, 2021
Oh, finally This was a mess, I'm so sorry. |
Rcjyn514
commented
Sep 22, 2021
@Cyborus04 can you squash the commits? 35 is a bit much haha |
f700673 to
64fc44aCompareCyborus04
commented
Sep 22, 2021
Oh dang, was it really that many? Haha wow, sorry |
bors
commented
Sep 26, 2021
☔ The latest upstream changes (presumably #89144) made this pull request unmergeable. Please resolve the merge conflicts. |
64fc44a to
027b30dCompareCyborus04
commented
Sep 27, 2021
I think I did that right? The guide is for the Git CLI but I used Github Desktop so I'm not entirely sure |
bors
commented
Sep 30, 2021
☔ The latest upstream changes (presumably #89386) made this pull request unmergeable. Please resolve the merge conflicts. |
I'm so confused, I didn't think I touched those files. |
027b30d to
a452b9dComparebors
commented
Jul 1, 2023
⌛ Testing commit 215cf36 with merge e6d0ee82dfeb886635f13bca987932406364c1db... |
This comment has been minimized.
This comment has been minimized.
bors
commented
Jul 1, 2023
💔 Test failed - checks-actions |
tgross35
commented
Jul 1, 2023
--- tests/debuginfo/rc_arc.rs+++ tests/debuginfo/rc_arc.rs@@ -30 +30 @@- // cdb-check:rc,d : 111 [Type: alloc::rc::Rc<i32>]+ // cdb-check:rc,d : 111 [Type: alloc::rc::Rc<i32,alloc::alloc::Global>]@@ -35 +35 @@- // cdb-check:weak_rc,d : 111 [Type: alloc::rc::Weak<i32>]+ // cdb-check:weak_rc,d : 111 [Type: alloc::rc::Weak<i32,alloc::alloc::Global>]@@ -40 +40 @@- // cdb-check:arc,d : 222 [Type: alloc::sync::Arc<i32>]+ // cdb-check:arc,d : 222 [Type: alloc::sync::Arc<i32,alloc::alloc::Global>]@@ -45 +45 @@- // cdb-check:weak_arc,d : 222 [Type: alloc::sync::Weak<i32>]+ // cdb-check:weak_arc,d : 222 [Type: alloc::sync::Weak<i32,alloc::alloc::Global>]@@ -50 +50 @@- // cdb-check:dyn_rc,d [Type: alloc::rc::Rc<dyn$<core::fmt::Debug> >]+ // cdb-check:dyn_rc,d [Type: alloc::rc::Rc<dyn$<core::fmt::Debug,alloc::alloc::Global> >]@@ -55 +55 @@- // cdb-check:dyn_rc_weak,d [Type: alloc::rc::Weak<dyn$<core::fmt::Debug> >]+ // cdb-check:dyn_rc_weak,d [Type: alloc::rc::Weak<dyn$<core::fmt::Debug,alloc::alloc::Global> >]@@ -60 +60 @@- // cdb-check:slice_rc,d : { len=3 } [Type: alloc::rc::Rc<slice2$<u32> >]+ // cdb-check:slice_rc,d : { len=3 } [Type: alloc::rc::Rc<slice2$<u32,alloc::alloc::Global> >]@@ -69 +69 @@- // cdb-check:slice_rc_weak,d : { len=3 } [Type: alloc::rc::Weak<slice2$<u32> >]+ // cdb-check:slice_rc_weak,d : { len=3 } [Type: alloc::rc::Weak<slice2$<u32,alloc::alloc::Global> >]@@ -78 +78 @@- // cdb-check:dyn_arc,d [Type: alloc::sync::Arc<dyn$<core::fmt::Debug> >]+ // cdb-check:dyn_arc,d [Type: alloc::sync::Arc<dyn$<core::fmt::Debug,alloc::alloc::Global> >]@@ -83 +83 @@- // cdb-check:dyn_arc_weak,d [Type: alloc::sync::Weak<dyn$<core::fmt::Debug> >]+ // cdb-check:dyn_arc_weak,d [Type: alloc::sync::Weak<dyn$<core::fmt::Debug,alloc::alloc::Global> >]@@ -88 +88 @@- // cdb-check:slice_arc,d : { len=3 } [Type: alloc::sync::Arc<slice2$<u32> >]+ // cdb-check:slice_arc,d : { len=3 } [Type: alloc::sync::Arc<slice2$<u32,alloc::alloc::Global> >]@@ -97 +97 @@- // cdb-check:slice_arc_weak,d : { len=3 } [Type: alloc::sync::Weak<slice2$<u32> >]+ // cdb-check:slice_arc_weak,d : { len=3 } [Type: alloc::sync::Weak<slice2$<u32,alloc::alloc::Global> >]--- tests/debuginfo/thread.rs+++ tests/debuginfo/thread.rs@@ -17 +17 @@- // cdb-check:[...] inner [...][Type: core::pin::Pin<alloc::sync::Arc<std::thread::Inner> >]+ // cdb-check:[...] inner [...][Type: core::pin::Pin<alloc::sync::Arc<std::thread::Inner,alloc::alloc::Global> >] |
thomcc
commented
Jul 3, 2023
@bors r=Amanieu |
bors
commented
Jul 3, 2023
bors
commented
Jul 3, 2023
⌛ Testing commit 34f6d24 with merge 25696703bd19f4ea7885e7c86acfc70a558b423d... |
This comment has been minimized.
This comment has been minimized.
bors
commented
Jul 3, 2023
💔 Test failed - checks-actions |
This test that failed has the output: It doesn't seem like this can be right... Isn't that exact text right there? I think we need a hand understanding what is going on, if anyone is more familiar with these tests |
Cyborus04
commented
Jul 3, 2023
Pointed out in Zulip that the |
It looks like these strings are generated here: rust/src/etc/natvis/liballoc.natvis Lines 61 to 187 in 0d50ab7 ptr.pointer part isn't computing for some reason? I don't think anything there should have changed.cc @rust-lang/wg-debugging, would you be able to help us figure out what's going on with the mismatched debug output here? (edit: sorry wg-mir-opt, I have no clue why I accidentally cc'd you instead of wg-debugging) |
Also update a test case to have the correct whitespace in a type name.
wesleywiser
commented
Jul 17, 2023
Hi @Cyborus04 and @tgross35 👋 I took the liberty of pushing a commit into your branch that fixes the failing debuginfo tests. The main thing to note is that some of the natvis visualizers do a partial match like this @bors r=Amanieu |
bors
commented
Jul 17, 2023
tgross35
commented
Jul 17, 2023
Thank you for taking a look Wesley! Don't think we ever would have figured that out on our own 🙂 |
Cyborus04
commented
Jul 17, 2023
yes, tysm! |
bors
commented
Jul 17, 2023
bors
commented
Jul 17, 2023
☀️ Test successful - checks-actions |
Cyborus04
commented
Jul 18, 2023
I had a double take when I saw the purple icon in my notifications, I'm so happy! |
rust-timer
commented
Jul 18, 2023
Finished benchmarking commit (da6b55c): comparison URL. Overall result: ❌✅ regressions and improvements - 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.
CyclesResultsThis 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.
Binary sizeResultsThis 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.
Bootstrap: 657.068s -> 658.015s (0.14%) |
pnkfelix
commented
Jul 19, 2023
Visiting for perf-triage
@rustbot label: +perf-regression-triaged |
Adds the ability for
std::rc:Rc,std::rc::Weak,std::sync::Arc, andstd::sync::Weakto live in custom allocators