diff --git a/src/task.c b/src/task.c index 0ed2a48a..1ba3f20c 100644 --- a/src/task.c +++ b/src/task.c @@ -1331,7 +1331,9 @@ static void _tf_task_gc_timer(uv_timer_t* timer) tf_trace_begin(task->_trace, "JS_RunGC"); JS_RunGC(task->_runtime); tf_trace_end(task->_trace); +#ifdef M_TRIM_THRESHOLD malloc_trim(0); +#endif } static void _tf_task_trace_timer(uv_timer_t* timer)