trim_stack_cache
trim_stack_cache(0);
trim_stack_cache(udp->thread_stack_cache);
trim_stack_cache(udp->nfreestack - 1);