Introduced a new jstest_memstat.c file that contains all the memory monitoring functions (from the patch files). Added custom allocator functions (jstest_malloc, jstest_realloc, ...) that can allocate
memory and monitor its usage.
In this case the content of the system-heap patches can be reduced, because it's simply enough to use the jstest allocator functions instead of the system allocator ones.
Introduced a new jstest_memstat.c file that contains all the memory monitoring functions (from the patch files). Added custom allocator functions (jstest_malloc, jstest_realloc, ...) that can allocate memory and monitor its usage.
In this case the content of the system-heap patches can be reduced, because it's simply enough to use the jstest allocator functions instead of the system allocator ones.