Copy the code from slab_allocator into OSTD and add license header

This commit is contained in:
Yuke Peng
2024-09-21 20:05:13 +08:00
committed by Tate, Hongliang Tian
parent f26c7a01cd
commit a754accf6a
6 changed files with 432 additions and 10 deletions

View File

@ -19,6 +19,7 @@
#![feature(ptr_sub_ptr)]
#![feature(strict_provenance)]
#![feature(sync_unsafe_cell)]
#![feature(allocator_api)]
// The `generic_const_exprs` feature is incomplete however required for the page table
// const generic implementation. We are using this feature in a conservative manner.
#![allow(incomplete_features)]