A novel and valid perspective.
I have simply relied on leaking wildly before, knowing it's a small program that will end soon. It's an acceptable solution in some cases.
I have simply relied on leaking wildly before, knowing it's a small program that will end soon. It's an acceptable solution in some cases.
But a quick google gets https://openjdk.java.net/jeps/318 which does say
Non-Goals
It is not a goal to introduce manual memory
management features to Java language and/or JVM...
but it doesn't say you can't or shouldn't. Game on then.You're totally right. Rather stupidly I hadn't thought of that.