Skip to content

Add miri_alloc, miri_dealloc #2657

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

Merged
merged 2 commits into from
Nov 13, 2022
Merged

Add miri_alloc, miri_dealloc #2657

merged 2 commits into from
Nov 13, 2022

Conversation

mkroening
Copy link
Contributor

miri_alloc and miri_dealloc are basically the same as __rust_alloc and __rust_dealloc respectively, but without the check for a global allocator.

This should allow bootstrapping an allocator in environments, where no fundamental way of allocating memory is available (no_std + alloc in Miri).

@RalfJung
Copy link
Member

Looks good, thanks!
@bors r+

@bors
Copy link
Contributor

bors commented Nov 13, 2022

📌 Commit 162e6a5 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Nov 13, 2022

⌛ Testing commit 162e6a5 with merge 1e8e0bd...

@bors
Copy link
Contributor

bors commented Nov 13, 2022

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

@bors bors merged commit 1e8e0bd into rust-lang:master Nov 13, 2022
@mkroening mkroening deleted the miri-alloc branch November 13, 2022 13:26
RalfJung pushed a commit to RalfJung/miri that referenced this pull request Nov 17, 2022
Add miri_alloc, miri_dealloc

`miri_alloc` and `miri_dealloc` are basically the same as `__rust_alloc` and `__rust_dealloc` respectively, but without the check for a global allocator.

This should allow bootstrapping an allocator in environments, where no fundamental way of allocating memory is available (`no_std` + `alloc` in Miri).
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.

5 participants