ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 42696] OutOfMemoryError using unzip Task
Date Wed, 13 Jul 2011 11:30:47 GMT

--- Comment #5 from Mounir <> 2011-07-13 11:30:47 UTC ---
Created attachment 27282
a patch to rg/apache/tools/zip/ 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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message