Re: class gc

Date view Thread view Subject view Author view

From: Godmar Back (gback@cs.utah.edu)
Date: Thu Dec 17 1998 - 16:13:10 EST


>
> On Dec 17, 1998, Godmar Back <gback@cs.utah.edu> wrote:
>
> >> So the ClassLoader actually keeps its Classes alive, via the class
> >> entry pool? If it does not, I think it should.
>
> > So it does keep them alive since the class entry pool is not walked.
>
> > Tell me why it should.
>
> then, there's http://java.sun.com/docs/books/jls/clarify.html:
>
> Class Unloading
>
> Questions have arisen with respect to the interpretation of JLS 12.8
> "Unloading of Classes and Interfaces". The following statement should
> help clarify the issue:
>
> A class or interface may be unloaded if and only if its class loader
> is unreachable (the definition of unreachable is given in JLS
> 12.6.1). Classes loaded by the bootstrap loader may not be unloaded.
>

Do you cite this because you are making an argument that classloaders
need to keep their classes alive somehow?

        - Godmar


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:20 EDT