You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bernd Eckenfels (JIRA)" <ji...@apache.org> on 2015/09/23 22:47:04 UTC

[jira] [Resolved] (VFS-548) SoftRefReleaseThread might leak

     [ https://issues.apache.org/jira/browse/VFS-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bernd Eckenfels resolved VFS-548.
---------------------------------
       Resolution: Duplicate
    Fix Version/s: 2.1

fixed with VFS-480 commit.

> SoftRefReleaseThread might leak 
> --------------------------------
>
>                 Key: VFS-548
>                 URL: https://issues.apache.org/jira/browse/VFS-548
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Bernd Eckenfels
>            Priority: Minor
>              Labels: leak, thread
>             Fix For: 2.1
>
>
> The lock-free but non-strict initiallisation of the SoftRefReleaseThread might in rare condition construct but not start Thread objects. This is actually a leak in older java versions (and I think causes a threadgroup to not be destroyed in newer versions). In any case, this optimization is not needed as it is on a cold path, so using synchronized to set the new value is perfectly fine. (especially as the thread constructor uses synchronized methods anyway).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)