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

Enforce constraints on MemoryTracker classes

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      We should make sure that the memory tracker classes have some constraints in place the give us confidence that they're working right

      • delete the copy constructor, and the copy assignment constructor
      • delete the move constructor too, if it isn't used at all
      • Add an assertion that the in-use bytes are zero in the destructor
      • Anything else that makes sense

      There are probably already places where we violate those constraints, they can be addressed as part of this ticket.

            Assignee:
            Unassigned Unassigned
            Reporter:
            chris.wolff@mongodb.com Chris Wolff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: