[ 
https://issues.apache.org/jira/browse/SYNAPSE-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922016#action_12922016
 ] 

Andreas Veithen commented on SYNAPSE-701:
-----------------------------------------

See SYNAPSE-212 for some background information.

The TemporaryData class (which by the way is obsoleted by a class called 
OverflowBlob that is now part of Axiom) is not directly affected by this flaw. 
However, the flaw has as consequence that it is not always possible to call the 
release method. The only way to mitigate that problem is to use a finalizer.

Note that I don't see why the finalizer could lead to an OOM condition. 
However, usage of deleteOnExit may cause problems if the JVM keeps references 
to the File object even if the file has been deleted.

> Remove the finalize method of the TemporaryData.java in commons module of 
> synapse
> ---------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-701
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-701
>             Project: Synapse
>          Issue Type: Bug
>            Reporter: Supun Kamburugamuva
>            Assignee: Supun Kamburugamuva
>
> A finalize method can cause delayed garbage collection as well as it doesn't 
> guarantee a clean. This can lead to potential Out of Memory errors if these 
> classes are used very frequently. Also this method is redundant because this 
> object has a explicit release method. So I suggest we remove this redundant 
> method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to