Proposal: @Unloadable Class defination
Joseph D. Darcy
Joe.Darcy at Sun.COM
Tue Mar 24 10:39:07 PDT 2009
Daniel Cheng wrote:
> AUTHOR(S): Daniel Cheng (aka SDiZ)
>
> OVERVIEW
>
> Introduce a @Unloadable annotation to allow a class to be unloaded
> even if the ClassLoader is still accessible.
>
> FEATURE SUMMARY:
>
> Introduce a @Unloadable annotation to allow a class to be unloaded
> even if the ClassLoader is still accessible. This allow opt-in Classes
> to be optionally unloaded in memory constrained environment.
>
What would that mean exactly to all those poor objects on the heap
needing that classloader?
When could this unloading occur, anytime, never?
A related issue is being able to call close on a ClassLoader, a
capability added to URLClassLoader in JDK 7:
http://blogs.sun.com/CoreJavaTechTips/entry/closing_a_urlclassloader
-Joe
More information about the coin-dev
mailing list