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

Create endian- and alignment-agnostic abstractions for reading and writing data

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.7.4
    • Fix Version/s: 2.7.7
    • Component/s: Internal Code
    • Labels:
      None

      Description

      We lack a fundamental read/write primitive for the server which provides an endian and alignment safe cross platform abstraction. I.e. one which swabs bytes where necessary and reads/writes via memcpy rather than reinterpret_cast.

      This is needed to:

      • remove undefined behavior in the server
      • enable builds on big endian architectures
      • enable builds on architectures with strict alignment access
      • remove -fno-strict-aliasing from server compilation flags

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: