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

library: Compute RUST_EXCEPTION_CLASS from native-endian bytes #130897

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

workingjubilee
Copy link
Member

This makes it appear correctly in hexdumps on both LE and BE platforms.

As discussed extensively in https://github.com/rust-lang/rust/pull/130381/files#r1760034980

This makes it appear correctly in hexdumps on both LE and BE platforms.
@rustbot
Copy link
Collaborator

rustbot commented Sep 26, 2024

r? @thomcc

rustbot has assigned @thomcc.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Sep 26, 2024
@thomcc
Copy link
Member

thomcc commented Sep 27, 2024

Nice. Not going to rollup this in case it causes issues and is needed to be identified in a bisection.

@bors r+ rollup=never

@bors
Copy link
Contributor

bors commented Sep 27, 2024

📌 Commit f21f4cd has been approved by thomcc

It is now in the queue for this repository.

@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 Sep 27, 2024
@bors
Copy link
Contributor

bors commented Sep 28, 2024

⌛ Testing commit f21f4cd with merge 150247c...

@bors
Copy link
Contributor

bors commented Sep 28, 2024

☀️ Test successful - checks-actions
Approved by: thomcc
Pushing 150247c to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Sep 28, 2024
@bors bors merged commit 150247c into rust-lang:master Sep 28, 2024
7 checks passed
@rustbot rustbot added this to the 1.83.0 milestone Sep 28, 2024
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (150247c): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-3.3% [-3.3%, -3.3%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -3.3% [-3.3%, -3.3%] 1

Max RSS (memory usage)

Results (primary 2.9%, secondary -2.2%)

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.

mean range count
Regressions ❌
(primary)
2.9% [2.9%, 2.9%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.2% [-2.2%, -2.2%] 1
All ❌✅ (primary) 2.9% [2.9%, 2.9%] 1

Cycles

Results (primary -2.5%, secondary 6.8%)

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.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
6.8% [6.8%, 6.8%] 1
Improvements ✅
(primary)
-2.5% [-2.9%, -2.1%] 2
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -2.5% [-2.9%, -2.1%] 2

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 771.075s -> 771.117s (0.01%)
Artifact size: 341.37 MiB -> 341.36 MiB (-0.00%)

@workingjubilee workingjubilee deleted the dump-hexes-with-class branch September 28, 2024 23:32
@nbdd0121
Copy link
Contributor

nbdd0121 commented Oct 8, 2024

Note that the Itanium exception ABI says that the convention is that high bit are for vendor and low bits are for language: https://itanium-cxx-abi.github.io/cxx-abi/abi-eh.html.

Perhaps put a relnote to say that the langauge is now renamed to MOZ? ;)

nbdd0121 added a commit to nbdd0121/unwinding that referenced this pull request Oct 8, 2024
This was changed in upstream Rust recently [1], so change to follow
suit. The error message is slightly different between
exception from another Rust runtime and a complete foreign exception.
(The message for later is a confusing "Rust exception must be
rethrown").

Link: rust-lang/rust#130897 [1]
nbdd0121 referenced this pull request in nbdd0121/unwinding Oct 8, 2024
This was changed in upstream Rust recently [1], so change to follow
suit. The error message is slightly different between
exception from another Rust runtime and a complete foreign exception.
(The message for later is a confusing "Rust exception must be
rethrown").

Link: rust-lang/rust#130381 [1]
@workingjubilee
Copy link
Member Author

Note that the Itanium exception ABI says that the convention is that high bit are for vendor and low bits are for language: https://itanium-cxx-abi.github.io/cxx-abi/abi-eh.html.

Perhaps put a relnote to say that the langauge is now renamed to MOZ? ;)

✔️ MOZ from RUST

@workingjubilee workingjubilee added the relnotes Marks issues that should be documented in the release notes of the next release. label Oct 9, 2024
@RalfJung
Copy link
Member

RalfJung commented Oct 9, 2024

More like ZOM, no? "The low 4 bytes" would have a different order on little-endian than on big-endian.

If all other languages use from_be_bytes, then maybe we should, too?

@RalfJung
Copy link
Member

RalfJung commented Oct 9, 2024

Cc @rust-lang/libs

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. relnotes Marks issues that should be documented in the release notes of the next release. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants