.. _automatically-replacing-malloc:

==========================================================================================
Automatically Replacing ``malloc`` and Other C/C++ Functions for Dynamic Memory Allocation
==========================================================================================
**[memory_allocation.malloc_replacement]**


On Windows*, Linux\* operating systems, it is possible to automatically
replace all calls to standard functions for dynamic memory allocation
(such as ``malloc``) with the |full_name| scalable equivalents.
Doing so can sometimes improve application performance.


Replacements are provided by the proxy library (the library names can be
found in platform-specific sections below). A proxy library and a
scalable memory allocator library should be taken from the same release
of oneTBB, otherwise the libraries may be mutually incompatible.

.. toctree::
   :maxdepth: 4

   ./malloc_replacement/windows_malloc_replacement
   ./malloc_replacement/malloc_replacement_log
   ./malloc_replacement/linux_malloc_replacement
