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

Investigate if it's worth having a debug only primitive for reference counted pointers

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability

      In SERVER-90992 we ended up having to implement a smart pointer that would do reference counting on debug builds but in release builds would boil down to a plain pointer. This was because we wanted to detect usages of the pointer that would be left pointing to an invalid region of memory.

      It was discussed in the PR that it would make sense to have a generalisation of this pattern so that it can be reused in other parts of the codebase.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: