ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42696] OutOfMemoryError using unzip Task
Date Wed, 13 Jul 2011 11:30:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=42696

--- Comment #5 from Mounir <melhaj@murex.com> 2011-07-13 11:30:47 UTC ---
Created attachment 27282
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27282
a patch to rg/apache/tools/zip/ZipFile.java to end the inflater when the
InflaterInputStream is closed

The OutOfMemoryError still happens with the head version. Although the fix to
this bug was a call to the close() of the zip file input stream after each
expand, the Inflater's native end() is never called, and thus memory is never
released. This is because we are not using the InflaterInputStream's default
Inflater, we are passing a new instance (you can check that InflaterInputStream
at close ends the inflater only if it is the default inflater, and not passed
from outside). I have patched ZipFile (check attached) to explicitly end the
inflater when the input stream is closed, and the problem is resolved

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

Mime
View raw message