[CXX-52] Remove MONGO_MALLOC and standardize driver on new/delete Created: 18/Feb/14 Updated: 07/Jan/15 Resolved: 07/Jan/15 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Implementation |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Andrew Morrow (Inactive) | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | legacy-cxx | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
The driver currently uses a mixture of new/delete and malloc/free. As a consequence, we need to use the util/allocator.h header to shim in a malloc and free that interact with our signal handlers. Instead, we should rely on the new_handler behavior by way of the standard C++ memory management facilities. |
| Comments |
| Comment by Andrew Morrow (Inactive) [ 07/Apr/14 ] |
|
Bumping to 0.9 as we don't strictly need this for 0.8 and we probably want to pick this up by way of a backport by way of fixing this in the server repo first. |