Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C92F10125 for ; Tue, 18 Nov 2014 04:35:34 +0000 (UTC) Received: (qmail 90490 invoked by uid 500); 18 Nov 2014 04:35:34 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 90408 invoked by uid 500); 18 Nov 2014 04:35:33 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 90397 invoked by uid 99); 18 Nov 2014 04:35:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Nov 2014 04:35:33 +0000 Date: Tue, 18 Nov 2014 04:35:33 +0000 (UTC) From: "Bernd Eckenfels (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (VFS-142) Clear ThreadData after all streams are closed, fixes a memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/VFS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bernd Eckenfels resolved VFS-142. --------------------------------- Resolution: Fixed Fix Version/s: 2.1 Ok tested it: with remove() there is a leak of FileContentThreadData objects avoided (when fo.close() or fc.close() is used). However there is still a leak if one uses any of the streams and closes them all, but does not close fileObject or fileContent. Since i commited this change with this ID I will close it as fixed and keep VFS-309 open. > Clear ThreadData after all streams are closed, fixes a memory leak > ------------------------------------------------------------------ > > Key: VFS-142 > URL: https://issues.apache.org/jira/browse/VFS-142 > Project: Commons VFS > Issue Type: Bug > Affects Versions: 1.1 > Reporter: Adam Heath > Assignee: Bernd Eckenfels > Fix For: 2.1 > > Attachments: fix_ThreadData-clear.patch, threadlocal_setNull_vs_remove_bug.patch > > > After all streams are closed in FileContentThreadData, clear the ThreadLocal. -- This message was sent by Atlassian JIRA (v6.3.4#6332)