(我想,部分原因是最初的 Sun 工程师有点厌倦了人们抱怨“Java 很慢”,而真正的问题是不必要的调用System.gc() ...)
1 - But not always. For example, calling System.gc() at a convenient time can be a way to avoid a GC-related pause at an inconvenient time. However, if your code only works if you run the GC at certain points, then you are doing something wrong.