Skip to content
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

change offset from u32 to u64 #75893

Merged
merged 4 commits into from
Aug 26, 2020
Merged

Conversation

Dylan-DPC-zz
Copy link

References #71696

r? @oli-obk

(closed the earlier pr because the rebase got messed up)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 25, 2020
@pickfire
Copy link
Contributor

Why shouldn't it be limited to usize?

@Mark-Simulacrum
Copy link
Member

@bors try @rust-timer queue

The bump in PlaceElem size here for the very unlikely case of wanting more than 2^32 elements in a slice or so seems pretty unfortunate.

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion

@bors
Copy link
Contributor

bors commented Aug 25, 2020

⌛ Trying commit f6a4a76 with merge 8b3c4d181991e5ec1946c4e1a4125b118dc26bb0...

@elichai
Copy link
Contributor

elichai commented Aug 25, 2020

Why shouldn't it be limited to usize?

Because it should support whatever offset the target supports.
So if you run rustc on a 32bit but target 64bit offsets can be 64bit, not 32bit.
I think this should be as big as the biggest architecture pointer supported.

@pickfire
Copy link
Contributor

Because it should support whatever offset the target supports.
So if you run rustc on a 32bit but target 64bit offsets can be 64bit, not 32bit.
I think this should be as big as the biggest architecture pointer supported.

Then why isn't it 128 bit?

@bors
Copy link
Contributor

bors commented Aug 25, 2020

☀️ Try build successful - checks-actions, checks-azure
Build commit: 8b3c4d181991e5ec1946c4e1a4125b118dc26bb0 (8b3c4d181991e5ec1946c4e1a4125b118dc26bb0)

@rust-timer
Copy link
Collaborator

Queued 8b3c4d181991e5ec1946c4e1a4125b118dc26bb0 with parent 5890563, future comparison URL.

@tesuji
Copy link
Contributor

tesuji commented Aug 25, 2020

Then why isn't it 128 bit

Rust hasn't ever supported 128 pointer width.

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit (8b3c4d181991e5ec1946c4e1a4125b118dc26bb0): comparison url.

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying rollup- to bors.

Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up.

@bors rollup=never

@Mark-Simulacrum
Copy link
Member

Performance looks like a slight (maybe .1%) loss on most benchmarks. The original downsizing was in #55589, by @oli-obk -- I suspect we didn't individually benchmark the various enums changing sizes, so maybe PlaceElem is not that important (or has become less important since then).

@oli-obk
Copy link
Contributor

oli-obk commented Aug 26, 2020

Yea, from the perf results I'd say let's do this (since it reduces complexity and possible ICEs)

@bors r+

@bors
Copy link
Contributor

bors commented Aug 26, 2020

📌 Commit f6a4a76 has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 26, 2020
@bors
Copy link
Contributor

bors commented Aug 26, 2020

⌛ Testing commit f6a4a76 with merge 6ead622...

@bors
Copy link
Contributor

bors commented Aug 26, 2020

☀️ Test successful - checks-actions, checks-azure
Approved by: oli-obk
Pushing 6ead622 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 26, 2020
@bors bors merged commit 6ead622 into rust-lang:master Aug 26, 2020
@rust-log-analyzer
Copy link
Collaborator

Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @rust-lang/infra. (Feature Requests)

@Dylan-DPC-zz Dylan-DPC-zz deleted the fix/offset-to-u64 branch August 26, 2020 16:07
@Alexendoo Alexendoo mentioned this pull request Aug 27, 2020
@cuviper cuviper added this to the 1.48.0 milestone Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.