You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Dou Tu (JIRA)" <ji...@apache.org> on 2018/03/28 09:22:00 UTC
[jira] [Comment Edited] (ARROW-2359) Type objects produced by
DataType factory are not thread safe
[ https://issues.apache.org/jira/browse/ARROW-2359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16417069#comment-16417069 ]
Dou Tu edited comment on ARROW-2359 at 3/28/18 9:21 AM:
--------------------------------------------------------
There is no shared data between two threads here!
So it must be thread-safe!
Should be junked.
was (Author: gaolizhou):
There is no global variables here!
So it must be thread-safe!
Should be junked.
> Type objects produced by DataType factory are not thread safe
> -------------------------------------------------------------
>
> Key: ARROW-2359
> URL: https://issues.apache.org/jira/browse/ARROW-2359
> Project: Apache Arrow
> Issue Type: Task
> Components: C++
> Reporter: Anton Shmigirilov
> Priority: Minor
> Labels: pull-request-available
>
> TYPE_FACTORY() macro that produces type shortcuts (boolean(), int32(), utf8() and so on) uses static shared_ptr inside. There are race conditions possible against shared_ptr's reference counter.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)