Fine, only malloc_trim if it looks like we have it.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4168 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-02-03 14:20:26 +00:00
parent ffda896308
commit 7f334ad783

View File

@ -1331,7 +1331,9 @@ static void _tf_task_gc_timer(uv_timer_t* timer)
tf_trace_begin(task->_trace, "JS_RunGC"); tf_trace_begin(task->_trace, "JS_RunGC");
JS_RunGC(task->_runtime); JS_RunGC(task->_runtime);
tf_trace_end(task->_trace); tf_trace_end(task->_trace);
#ifdef M_TRIM_THRESHOLD
malloc_trim(0); malloc_trim(0);
#endif
} }
static void _tf_task_trace_timer(uv_timer_t* timer) static void _tf_task_trace_timer(uv_timer_t* timer)