You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Alex Levenson (JIRA)" <ji...@apache.org> on 2013/10/03 02:25:41 UTC

[jira] [Updated] (THRIFT-2218) Make java TSerializer and TDeserializer thread safe

     [ https://issues.apache.org/jira/browse/THRIFT-2218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Levenson updated THRIFT-2218:
----------------------------------

    Attachment: TSerDe-thread-safe.diff

> Make java TSerializer and TDeserializer thread safe
> ---------------------------------------------------
>
>                 Key: THRIFT-2218
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2218
>             Project: Thrift
>          Issue Type: Improvement
>            Reporter: Alex Levenson
>         Attachments: TSerDe-thread-safe.diff
>
>
> They currently are not thread safe, though it seems that many people assume incorrectly that they are. 
> This patch puts the shared mutable state used by TSerializer / TDeserializer in a ThreadLocal object so that it is safe to share instances of TSerializer / TDeserializer across threads.
> I've attached the patch, and you can view it in github here as well:
> https://github.com/isnotinvain/thrift/compare/TSerDe-thread-safe



--
This message was sent by Atlassian JIRA
(v6.1#6144)