You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Takashi Yonebayashi (JIRA)" <ji...@apache.org> on 2011/01/17 23:55:43 UTC
[jira] Created: (THRIFT-1041) TDeserializer holds onto a reference
of the array it reads after it is done deserializing
TDeserializer holds onto a reference of the array it reads after it is done deserializing
-----------------------------------------------------------------------------------------
Key: THRIFT-1041
URL: https://issues.apache.org/jira/browse/THRIFT-1041
Project: Thrift
Issue Type: Bug
Components: Java - Library
Reporter: Takashi Yonebayashi
Priority: Minor
Attachments: THRIFT-1041.patch
Since the TMemoryInputTransport is not reset after the TDeserializer is done reading, this could cause memory problems for applications that expect those arrays to be free for garbage collection later.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (THRIFT-1041) TDeserializer holds onto a reference
of the array it reads after it is done deserializing
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury reassigned THRIFT-1041:
-------------------------------------
Assignee: Bryan Duxbury
> TDeserializer holds onto a reference of the array it reads after it is done deserializing
> -----------------------------------------------------------------------------------------
>
> Key: THRIFT-1041
> URL: https://issues.apache.org/jira/browse/THRIFT-1041
> Project: Thrift
> Issue Type: Bug
> Components: Java - Library
> Reporter: Takashi Yonebayashi
> Assignee: Bryan Duxbury
> Priority: Minor
> Attachments: THRIFT-1041.patch
>
>
> Since the TMemoryInputTransport is not reset after the TDeserializer is done reading, this could cause memory problems for applications that expect those arrays to be free for garbage collection later.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (THRIFT-1041) TDeserializer holds onto a reference
of the array it reads after it is done deserializing
Posted by "Takashi Yonebayashi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Takashi Yonebayashi updated THRIFT-1041:
----------------------------------------
Attachment: THRIFT-1041.patch
> TDeserializer holds onto a reference of the array it reads after it is done deserializing
> -----------------------------------------------------------------------------------------
>
> Key: THRIFT-1041
> URL: https://issues.apache.org/jira/browse/THRIFT-1041
> Project: Thrift
> Issue Type: Bug
> Components: Java - Library
> Reporter: Takashi Yonebayashi
> Priority: Minor
> Attachments: THRIFT-1041.patch
>
>
> Since the TMemoryInputTransport is not reset after the TDeserializer is done reading, this could cause memory problems for applications that expect those arrays to be free for garbage collection later.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (THRIFT-1041) TDeserializer holds onto a reference
of the array it reads after it is done deserializing
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury closed THRIFT-1041.
---------------------------------
Resolution: Fixed
Fix Version/s: 0.7
I ended up committing a slightly different version of this patch, since calling reset(null) was causing NPEs.
> TDeserializer holds onto a reference of the array it reads after it is done deserializing
> -----------------------------------------------------------------------------------------
>
> Key: THRIFT-1041
> URL: https://issues.apache.org/jira/browse/THRIFT-1041
> Project: Thrift
> Issue Type: Bug
> Components: Java - Library
> Reporter: Takashi Yonebayashi
> Assignee: Bryan Duxbury
> Priority: Minor
> Fix For: 0.7
>
> Attachments: THRIFT-1041.patch
>
>
> Since the TMemoryInputTransport is not reset after the TDeserializer is done reading, this could cause memory problems for applications that expect those arrays to be free for garbage collection later.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.