[mem]: Adjust the docs on the buddy allocator

This commit is contained in:
flysand7
2024-09-14 10:03:04 +11:00
parent f16ed256ea
commit e90f5d2528
2 changed files with 197 additions and 13 deletions
+5
View File
@@ -48,6 +48,11 @@ Operations such as `new`, `free` and `delete` by default will use
happens all called procedures will inherit the new context and use the same
allocator.
We will define one concept to simplify the description of some allocator-related
procedures, which is ownership. If the memory was allocated via a specific
allocator, that allocator is said to be the *owner* of that memory region. To
note, unlike Rust, in Odin the memory ownership model is not strict.
## Alignment
An address is said to be *aligned to `N` bytes*, if the addresses's numeric