Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12752

Eliminate direct uses of C allocation routines malloc, free, and realloc in the server

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • None
    • Fully Compatible

      By relying on these functions which do not throw on failure, we are forced to interpose our own malloc functions that call into our stack trace routines on failure.

      We should standardize on the C++ new/delete API which will throw at the point of allocation failure and does not require us to use macros to change the semantics of malloc/free.

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: