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 2014/11/18 18:31:33 UTC
[jira] [Created] (VFS-548) SoftRefReleaseThread might leak
Bernd Eckenfels created VFS-548:
-----------------------------------
Summary: 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
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)