You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
-
Yes, this is true. It also merely requests that the JVM garbage collect, and doesn't force it to.Peter Berg– Peter Berg2013年11月02日 22:18:10 +00:00Commented Nov 2, 2013 at 22:18
-
It's generally best to not expect System.gc() to do anything at all predictable. It's mostly there for people who feel they must somehow control GC, even when they don't have the foggiest notion what they're doing.Hot Licks– Hot Licks2013年11月02日 23:12:57 +00:00Commented Nov 2, 2013 at 23:12
lang-java