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

directly call handle_alloc_error #3480

Merged
merged 3 commits into from
Apr 17, 2024
Merged

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Apr 17, 2024

Also test more codepaths. There's like 5 different things that can happen on allocation failure! Between -Zoom, #[alloc_error_handler], and set_alloc_error_hook, we have 3 layers of behavior overrides. It's all a bit messy.

rust-lang/rust#112331 seems intended to clean this up, but has not yet reached consensus.

@RalfJung
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented Apr 17, 2024

📌 Commit 1f1f613 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 17, 2024

⌛ Testing commit 1f1f613 with merge dcd17c9...

@bors
Copy link
Contributor

bors commented Apr 17, 2024

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing dcd17c9 to master...

@bors bors merged commit dcd17c9 into rust-lang:master Apr 17, 2024
7 of 8 checks passed
@RalfJung RalfJung deleted the alloc_error_handler branch April 17, 2024 10:35
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