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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: