[ 
https://issues.apache.org/jira/browse/ARROW-2359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16418191#comment-16418191
 ] 

Anton Shmigirilov commented on ARROW-2359:
------------------------------------------

It seems original topic message is incorrect. It looks like there aren't races 
in singleton itself. There is another race condition in my code somewhere, it's 
related to arrow::DataType usages and it's eliminated if singleton is removed 
using proposed patch. Anyway, this JIRA task has wrong description and can be 
removed or renamed, if needed. Guys, sorry for confuse. (But I still think that 
static shared_ptr is over-engineering ;) )

> 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)

Reply via email to