[ https://issues.apache.org/jira/browse/ARROW-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16437724#comment-16437724 ]
ASF GitHub Bot commented on ARROW-2455: --------------------------------------- pitrou closed pull request #1892: ARROW-2455: [C++] Initialize the atomic bytes_allocated_ properly URL: https://github.com/apache/arrow/pull/1892 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/cpp/src/arrow/gpu/cuda_context.cc b/cpp/src/arrow/gpu/cuda_context.cc index 909c98aa8..578c04a5a 100644 --- a/cpp/src/arrow/gpu/cuda_context.cc +++ b/cpp/src/arrow/gpu/cuda_context.cc @@ -40,7 +40,7 @@ struct CudaDevice { class CudaContext::CudaContextImpl { public: - CudaContextImpl() {} + CudaContextImpl() : bytes_allocated_(0) {} Status Init(const CudaDevice& device) { device_ = device; ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > [C++] The bytes_allocated_ in CudaContextImpl isn't initialized > --------------------------------------------------------------- > > Key: ARROW-2455 > URL: https://issues.apache.org/jira/browse/ARROW-2455 > Project: Apache Arrow > Issue Type: Bug > Components: GPU > Reporter: Tao He > Priority: Major > Labels: pull-request-available > Fix For: 0.10.0 > > > The atomic counter `bytes_allocated_` in `CudaContextImpl` isn't initialized, > leading to failure of cuda-test on windows. -- This message was sent by Atlassian JIRA (v7.6.3#76005)