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

StaticImmortal needs some std::launder calls

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Service Arch
    • ALL


      The `_storage` member of StaticImmortal is raw memory that is treated as a live T value, via reinterpret_cast or placement new. Situations like this technically require a std::launder in C++17 to disable harmful compiler optimizations.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: