This is the mail archive of the java-prs@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcj/137: ltdl modules never released



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]