Skip to content

Commit

Permalink
chore: vendor a part of rlsf 0.1.2
Browse files Browse the repository at this point in the history
We need a suballocator for a compile-time heap because the
`const_deallocate` intrinsic isn't implemented yet (there's an open PR
[1]), but we want to reuse deallocated memory regions.

We are not adding the vendored `rlsf` as a separate crate because, as
explained earlier, this is a temporary measure, and we don't want to
pollute crates.io's namespace.

We can't make the necessary changes to the upstream `rlsf` because
maintaining the compatibility with a stable compiler is very likely to
pose a considerable challenge and unacceptable maintenance burdens.

[1]: rust-lang/rust#92274
  • Loading branch information
yvt committed Jan 20, 2022
1 parent 22fe8d6 commit 117bea2
Show file tree
Hide file tree
Showing 7 changed files with 3,376 additions and 0 deletions.
Loading

0 comments on commit 117bea2

Please sign in to comment.