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

Various cleanups #673

Merged
merged 2 commits into from
Jan 6, 2025
Merged

Various cleanups #673

merged 2 commits into from
Jan 6, 2025

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Sep 18, 2024

  • Avoid two unnecessary allocations in handle_split_dwarf.
  • Couple of other minor changes.

match Error::last_os_error().raw_os_error() {
Some(libc::ENOMEM) => {
match errno() {
libc::ENOMEM => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really sure if I should keep this change. If you want I will drop this commit.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems fine to me.

@bjorn3
Copy link
Member Author

bjorn3 commented Sep 22, 2024

Just noticed that #666 also did most of the changes in this PR. Will rebase once that PR os merged.

@workingjubilee
Copy link
Member

@bjorn3 rebase please?

bjorn3 added 2 commits January 3, 2025 13:37
Also avoids two unnecessary allocations in handle_split_dwarf.
Copy link

github-actions bot commented Jan 3, 2025

Code size changes for a hello-world Rust program linked with libstd with backtrace:

On platform ubuntu-latest:

  • Original binary size: 383,480 B
  • Updated binary size: 379,384 B
  • Difference: -4,096 B (-1.07%)

Copy link

github-actions bot commented Jan 6, 2025

Code size changes for a hello-world Rust program linked with libstd with backtrace:

On platform ubuntu-latest:

  • Original binary size: 385,800 B
  • Updated binary size: 383,480 B
  • Difference: -2,320 B (-0.6%)

@workingjubilee workingjubilee merged commit 016f80a into rust-lang:master Jan 6, 2025
41 checks passed
@bjorn3 bjorn3 deleted the mystd_refactor branch January 6, 2025 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants