liballoc: change align to 16 bytes

This commit is contained in:
occheung 2021-08-11 12:18:13 +08:00
parent 7f0bc9f7f0
commit 50a62b3d42
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ use core::{ptr, mem, fmt};
use core::alloc::{GlobalAlloc, Layout}; use core::alloc::{GlobalAlloc, Layout};
// The minimum alignment guaranteed by the architecture. // The minimum alignment guaranteed by the architecture.
const MIN_ALIGN: usize = 4; const MIN_ALIGN: usize = 16;
const MAGIC_FREE: usize = 0xDEADDEAD; const MAGIC_FREE: usize = 0xDEADDEAD;
const MAGIC_BUSY: usize = 0xFEEDFEED; const MAGIC_BUSY: usize = 0xFEEDFEED;