2 ms·
It is common in C++ to override operators new and delete. When you use tcmalloc in a C++ program it overrides all the global allocator and deallocator operators
by jeffbee 5y ago
It is common in C++ to override operators new and delete. When you use tcmalloc in a C++ program it overrides all the global allocator and deallocator operators. When you use tcmalloc in a C program, it just overrides malloc, because there is no richer API available.
- maximilianburke 5y agoAnd the same overriding can be done in a C program with malloc and free, too.