4 ms·
I'm curious how you do allocation partitioning based on type for C. You can certainly segregate on size, but that still allows confusions across types that are
by saagarjha 5y ago
I'm curious how you do allocation partitioning based on type for C. You can certainly segregate on size, but that still allows confusions across types that are the same size–plumbing type metadata should require compiler support.
- pkhuong 5y agoYou use a different interface than malloc/free and ask the programmer to pass in a class tag. https://github.com/backtrace-labs/slitter/blob/7afb9781fd25b8cee62afa555b9d38f391131044/include/slitter.h#L7-L44 https://github.com/backtrace-labs/slitter/blob/7afb9781fd25b...