gcj/137: ltdl modules never released

Tom Tromey tromey@cygnus.com
Mon Jan 17 14:20:00 GMT 2000


>Number:         137
>Category:       gcj
>Synopsis:       ltdl modules never released
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 17 14:20:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Tom Tromey
>Release:        current cvs
>Organization:
>Environment:

>Description:
Currently a module loaded via libltdl will never be
unloaded.

We could support unloading as a side effect of Class GC.
One way to do this would be to keep track of the library
from which a class was loaded, and unload the library
when all classes from it have been GCd.  We could do this
by locking the class cache before a library is loaded,
and then marking all classes registered (with the cache)
as being from that library.  This in turn could be used
to implement proper reference counting via libltdl's
mechanisms.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Java-prs mailing list