Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Re-write the allocator to use the linked-list-allocator crate #2

Merged
merged 3 commits into from
May 31, 2022
Merged

Re-write the allocator to use the linked-list-allocator crate #2

merged 3 commits into from
May 31, 2022

Conversation

jessebraham
Copy link
Member

@jessebraham jessebraham commented May 31, 2022

Use the linked-list-allocator crate instead of the previous hand-crafted allocator.

I have created a repository containing two projects testing this functionality. Note that for whatever reason on Xtensa using panic-halt with this seems to cause linker errors, however defining our own panic handler works fine. For RISC-V it works fine with panic-halt. Not sure what's going on there. Anyways, repo:
https://github.com/jessebraham/alloc-test

I have also already pinned this dependency in esp-wifi to the current HEAD, so merging this will not cause issues with that project.

@jessebraham jessebraham requested a review from bjoernQ May 31, 2022 17:36
Cargo.toml Outdated Show resolved Hide resolved
@bjoernQ
Copy link
Contributor

bjoernQ commented May 31, 2022

Looks good - really curious to see how this works with esp-wifi

Cargo.toml Outdated Show resolved Hide resolved
@jessebraham jessebraham merged commit acd2745 into esp-rs:main May 31, 2022
@jessebraham jessebraham deleted the feature/linked-list-allocator branch June 2, 2022 18:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants