Why is it a bad practice to call System.gc?
- by zneak
After answering to a question about how to force-free objects in Java (the guy was clearing a 1.5GB HashMap) with System.gc(), I've been told it's a bad practice to call System.gc() manually, but the comments seemed mitigated about it. So much that no one dared to upvote it, nor downvote it.
I've been told there it's a bad practice, but then I've…