This module defines an interface for replacing the standard libc dynamic memory operations.
This facade doesn’t implement any heap structure or dynamic memory methods. It
only requires that backends implements a
void pw_MallocInit(); method.
This function is called before static intialization, and is responsible for
initializing global data structures required by the malloc implementation.
The intent of this module is to provide an interface for user-provided dynamic memory operations that is compatible with different implementations.
This module requires the following setup:
pw_mallocbackend, or write one yourself.
Select a backend in your build system. If using GN build, Specify the
pw_malloc_BACKENDGN build arg to point to the library that provides a
pw_mallocbackend. If using the Bazel build, add the constraint value for the backend library that provides a
See backend docs for how to interact with the underlying dynamic memory operations implementation.