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

XMLWordPrintableJSON

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

      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
              Reporter:
              Jordi Olivares Provencio
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: