Closed icuken closed 3 months ago
Looks like assertion in TCMallocInternalMallocSize is not exactly correct because according to man malloc_usable_size:
man malloc_usable_size
If ptr is NULL, 0 is returned.
But the following code crashes:
#include <malloc.h> #include <iostream> int main() { std::cout << malloc_usable_size(nullptr) << std::endl; return 0; }
Looks like assertion in TCMallocInternalMallocSize is not exactly correct because according to
man malloc_usable_size
:But the following code crashes: