You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Daniel Bakai (JIRA)" <ji...@apache.org> on 2019/07/05 13:01:00 UTC
[jira] [Created] (MINIFICPP-949) Review our smart pointer usage
Daniel Bakai created MINIFICPP-949:
--------------------------------------
Summary: Review our smart pointer usage
Key: MINIFICPP-949
URL: https://issues.apache.org/jira/browse/MINIFICPP-949
Project: Apache NiFi MiNiFi C++
Issue Type: Improvement
Reporter: Daniel Bakai
* We have to avoid shared_ptr cycles
* Don’t use shared_ptr indiscriminately, use weak_ptr where ownership is not really required
* Analyze the code or wrap shared_ptr in Debug builds into an object with extra accounting to detect shared_ptr cycles
* It would be better to create an architecture that “just works” instead of one where you have to take active action for it to work
* We shouldn’t leak even if the Connections are not drained
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)