[
https://issues.apache.org/jira/browse/TRINIDAD-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gabrielle Crawford resolved TRINIDAD-1989.
------------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0-beta-1
> Defltaer/inflater from StateManagerImpl holds onto memory
> ---------------------------------------------------------
>
> Key: TRINIDAD-1989
> URL: https://issues.apache.org/jira/browse/TRINIDAD-1989
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Archetype
> Affects Versions: 1.2.12-core
> Reporter: Stevan Malesevic
> Fix For: 2.0.0-beta-1
>
>
> StateManagerImpl correctly uses a instance of Deflater/Infalter from session
> scope for view state compression to avoid recreating these objects since they
> have finalizers which hurt jvm. Howevere, when returning inflater/deflater to
> session scope method reset will just reset position for the internal buffer
> but will not clean buffer. This has impact on preformance since we can pin
> large buffers for the duration of the session. To avoid this issue we can
> declare
> private static final byte[] empty = new byte[0];
> and call decompressor.setInput(empty); and compressor.setInput(empty);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.