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