A CLI tool (which most POSIX tools are) would pick throughput over latency any time.
In the best cases, you’re losing a huge amount of performance vs. an equivalent non-GC system. In the worst, it affects interactive UI performance with multi-second stalls (a suitably modern GC shouldn’t do this, though).
Basically java gc is a solution to a problem that shouldn't exist.
But you're never going to encounter a C++ program that does that, since it makes no sense.