In a no_std environment, you can define the global heap allocator via #[global_allocator]
. However language items such as exchange_malloc and box_free also exist as described in this answer here. What is the relationship between these? Should both be implemented in a kernel, or is global_allocator sufficient?
↧
What is the relationship between global_allocator and exchange_malloc?
↧