static void alloc_perturb (char *p, size_t n)
在perturb_byte存在时将新分配的内存填满。
if (__glibc_unlikely (perturb_byte))
memset (p, perturb_byte ^ 0xff, n);
malloc_consolidate
consolidate: (使)结成一体,合并;(使)巩固;使加强
malloc_consolidate is a specialized version of free() that tears down chunks held in fastbins. Free itself cannot be used for this purpose since, among other things, it might place chunks back onto fastbins. So, instead, we need to use a minor variant of the same code.
malloc_consolidate 是 free() 的一个专门版本,用于(拆毁?) fastbins 中的数据块。Free 本身不能用于此目的,因为它可能会将数据块放回 fastbins。因此,我们需要使用相同代码的一个次要变体。