Skip to content

Adapt gc_deinit() and gc_never_free() to use split heaps #8512

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

Closed
dhalbert opened this issue Oct 24, 2023 · 0 comments · Fixed by #8553
Closed

Adapt gc_deinit() and gc_never_free() to use split heaps #8512

dhalbert opened this issue Oct 24, 2023 · 0 comments · Fixed by #8553
Assignees
Milestone

Comments

@dhalbert
Copy link
Collaborator

We added gc_deinit() and gc_never_free(), but I think they need work for split heap use.

Tentatively assigned to @tannewt as part of the split heap work.

@dhalbert dhalbert added this to the 9.0.0 milestone Oct 24, 2023
dhalbert pushed a commit that referenced this issue Nov 8, 2023
This simplifies allocating outside of the VM because the VM doesn't
take up all remaining memory by default.

On ESP we delegate to the IDF for allocations. For all other ports,
we use TLSF to manage an outer "port" heap. The IDF uses TLSF
internally and we use their fork for the other ports.

This also removes the dynamic C stack sizing. It wasn't often used
and is not possible with a fixed outer heap.

Fixes #8512. Fixes #7334.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants