Release version the proxy library is tbbmalloc_proxy.dll, debug version tbbmalloc_debug_proxy.dll.
The following dynamic memory functions are replaced:
Standard C library functions: malloc, calloc, realloc, free
Replaceable global C++ operators new and delete
Microsoft* C run-time library functions: _msize, _aligned_malloc, _aligned_realloc, _aligned_free, _aligned_msize
Prior to Intel® Threading Building Blocks (Intel® TBB) 2019, replaced global operator new might not call the std::new_handler.
To do the replacement use one of the following methods:
Add the following header to a source code of any binary which is loaded during application startup.
Alternatively, add the following parameters to the linker options for the .exe or .dll file that is loaded during application startup.
For 32-bit code (note the triple underscore):
For 64-bit code (note the double underscore):
The OS program loader must be able to find the proxy library and the scalable memory allocator library at program load time. For that you may include the directory containing the libraries in the PATH environment variable.