drizzle
Profile
Search
 
Powered by SoftLayer
DYNAMIC ARRAY Replacement

Contents

What

Observe and document all of the remaining instances of DYNAMIC_ARRAY in the codebase. This includes finding where it is allocated, where it is destroyed, and if it has any "interesting" usage. If it is a member variable of a struct or class, that classes lifetime must also be fully understood and documented.


Why

From experiences learned while working on replacing the instances of List, many problems were exposed. Primarily the issue of object lifetime. New contributions to Drizzle are classes with proper construction and destruction. However, legacy and yet to be worked on items often have any of the C style allocations happening to them (memset, memcpy, malloc, mem_root, etc). If an STL container is put in one of these a memory leak can and will occur.


Blueprint

https://blueprints.launchpad.net/drizzle/+spec/code-cleanup-c++-replace-dynamic-array


How

Public Data Members


Public Interface


Remaining Usage

Simple Replacements








Non Trivial Replacements







Completed / Refactored

Site generously hosted by SoftLayer Technologies