DevNation 2014 – Jason Greene – JVM Finalize Pitfalls: How to Avoid the Danger

Abstract: Properly freeing external resources such as files and connections in a garbage collected environment requires care. The JVM’s finalize() and PhantomReference features provide APIs and JVM targetted languages a way to handle the common case of a forgotten close. Unfortunately these capabilities are deeply flawed, and require specialized techniques to use correctly. This session will dive deeply into the problem, showing how the JVM can get it wrong. It will offer useful tips on how developers can safely manage their resources, and never forgot to close. In addition, API and language designers will gain more insight into the inner-workings of the JVM, and how they can safely avoid the peril of JVM finalization.

devnation_logo_lightbkg_200px

 

via DevNation 2014 – Jason Greene – JVM Finalize Pitfalls: How to Avoid the Danger.


Join the Red Hat Developer Program (it’s free) and get access to related cheat sheets, books, and product downloads.


DevNation is now part of Red Hat Summit.  See www.redhat.com/Summit.  Red Hat Summit is for developers!

Share