Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6334

What is the relationship between global_allocator and exchange_malloc?

$
0
0

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?


Viewing all articles
Browse latest Browse all 6334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>