-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Always emit unnamed_addr
for statics
#131952
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Always emit `unnamed_addr` for statics Fixes rust-lang#18297 Mostly to see if anything breaks/perf r? `@ghost`
The job Click to see the possible cause of the failure (guessed by this bot)
|
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
It's encouraging that there are some test failures in here, because I'm pretty sure this is unsound. See rust-lang/unsafe-code-guidelines#206. cc @rust-lang/opsem |
Yeah that statement hasn't aged well -- we definitely want code to be able to rely on the address of a static. |
Finished benchmarking commit (dc781d9): comparison URL. Overall result: no relevant changes - 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 benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary 2.1%, secondary 2.0%)This 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. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 780.97s -> 781.537s (0.07%) |
Fixes #18297
Mostly to see if anything breaks/perf
r? @ghost