You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Tim Armstrong (JIRA)" <ji...@apache.org> on 2018/10/31 18:02:00 UTC
[jira] [Updated] (IMPALA-3476) Use new with nothrow where
appropriate
[ https://issues.apache.org/jira/browse/IMPALA-3476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Armstrong updated IMPALA-3476:
----------------------------------
Issue Type: Improvement (was: Bug)
> Use new with nothrow where appropriate
> --------------------------------------
>
> Key: IMPALA-3476
> URL: https://issues.apache.org/jira/browse/IMPALA-3476
> Project: IMPALA
> Issue Type: Improvement
> Components: Backend
> Affects Versions: Impala 2.6.0
> Reporter: Tim Armstrong
> Priority: Minor
> Labels: resource-management
>
> In many places in the code, we use C++ new, which throws an exception on failure. We should instead use the nothrow variant of new where possible, especially for large allocations. This returns NULL instead of throwing an exception.
> http://www.cplusplus.com/reference/new/nothrow/
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org