by sandius · 10y ago · 0 comments
Btw, thanks for the discussion!
About System.gc(): at least in the Oracle JVM, I think so. But then look at what it says in the JavaDoc: "When control returns from the method call, the Java Virtual Machine has made a best effort to reclaim space from all discarded objects." A no-op interpretation can indeed be a best effort (as in, "there's nothing to be done!") :) But since it's the only place in the JDK that gives at least some kind of a GC-related guarantee, it's the best there is.
These pastures may be greener in other JVMs, though!
No comments yet.