commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33256] - [VFS] SoftRefFilesCache does not work
Date Thu, 27 Jan 2005 13:59:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33256>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33256


mario@ops.co.at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From mario@ops.co.at  2005-01-27 14:59 -------
I think this already fixed it.

Its just hard to debug.
I have had to explicitly set a reference to "null" to allow it to be freed.

I tried

{
 FileObject fo = resolve.....
 fo.close();
}

while(true)
{
System.gc();
}

Even if the "fo" was out of scope the gc didnt garbage collected it. After
adding fo=null right after the fo.close() it worked.

JProfiler didnt gave me much more hints than that the "fo" object was referenced
by the "java stack of thread main". Odd.

This must be something special within the "static main" method.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message