1570af302Sopenharmony_ci#ifndef HOOK_ENABLE 2570af302Sopenharmony_ci#include <stdlib.h> 3570af302Sopenharmony_ci#ifdef USE_JEMALLOC 4570af302Sopenharmony_ciextern void* je_calloc(void* p, size_t newsize); 5570af302Sopenharmony_ci#endif 6570af302Sopenharmony_civoid *calloc(size_t m, size_t n) 7570af302Sopenharmony_ci{ 8570af302Sopenharmony_ci#ifdef USE_JEMALLOC 9570af302Sopenharmony_ci return je_calloc(m, n); 10570af302Sopenharmony_ci#endif 11570af302Sopenharmony_ci return __libc_calloc(m, n); 12570af302Sopenharmony_ci} 13570af302Sopenharmony_ci#endif