-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Port backtrace's line-tables-only
test over to rustc
#122918
Port backtrace's line-tables-only
test over to rustc
#122918
Conversation
4cc07d7
to
f85a455
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
55327df
to
1a3a3df
Compare
This comment has been minimized.
This comment has been minimized.
Where line numbers :( |
1a3a3df
to
599207e
Compare
it is starting to seem like "reusing the existing c file" isn't going to work if it requires reusing the existing gcc which might be trash (at least, at generating debuginfo). |
It was because ui test mode by default has |
oh nice. |
599207e
to
a35f42c
Compare
This comment has been minimized.
This comment has been minimized.
35924aa
to
698b9a3
Compare
698b9a3
to
c98c3b6
Compare
This comment has been minimized.
This comment has been minimized.
c98c3b6
to
d5ba1e7
Compare
d5ba1e7
to
088b979
Compare
This comment has been minimized.
This comment has been minimized.
So the helper does have line-tables,
but where did my (the helper is this:) //@ compile-flags: -Cstrip=none -Cdebuginfo=line-tables-only
#[no_mangle]
pub fn baz<F>(mut cb: F, data: u32) where F: FnMut(u32) {
cb(data);
}
#[no_mangle]
pub fn bar<F>(cb: F, data: u32) where F: FnMut(u32) {
baz(cb, data);
}
#[no_mangle]
pub fn foo<F>(cb: F, data: u32) where F: FnMut(u32) {
bar(cb, data);
}
pub fn capture_backtrace() -> std::backtrace::Backtrace {
let mut bt = None;
foo(|_| bt = Some(std::backtrace::Backtrace::capture()), 42);
bt.unwrap()
} |
This comment has been minimized.
This comment has been minimized.
d08d266
to
00d3639
Compare
terrifying. |
This comment has been minimized.
This comment has been minimized.
Somehow made it even worse on i686-msvc. I'll fix this tmrw 😆 |
5c400c3
to
6065096
Compare
6065096
to
d4aeff7
Compare
// FIXME(jieyouxu): for some forsaken reason on i686-msvc `foo` doesn't have an entry in the | ||
// line tables? | ||
#[cfg(not(all(target_pointer_width = "32", target_env = "msvc")))] | ||
{ | ||
assert_contains(&backtrace, "foo", "line-tables-only-helper.rs", 5); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rustbot ready |
Looks good to me, but in practice we're playing roulette. @bors r+ |
I'm going to mark this as iffy because... I kinda expect this to bounce in full build CI |
…only, r=workingjubilee Port backtrace's `line-tables-only` test over to rustc Part of rust-lang#122899.
@bors retry Yielding priority to the stable release. |
☀️ Test successful - checks-actions |
Finished benchmarking commit (93c131e): comparison URL. Overall result: ❌ regressions - no action needed@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)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 673.348s -> 674.369s (0.15%) |
Part of #122899.