You know Rust is a garbage collector right? The only difference is when Rust/JVM decides to clean the memory and how.
You are not asking the OS for new memory in every Rust allocation and releasing in each block. That would be crazy slow. It all happens in blocks of memory, just like the JVM.
