Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-11645

Facilitate discussion on how to address data races in the existing code

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 8

      The current code base uses atomic operations through platform specific APIs available on all supported systems. The current code mixes atomic and non-atomic operations according to context the variable is accessed in, and whether or not historical values yield acceptable behavior.

      Mixing atomic/non-atomic operations is a data race and as such is undefined behavior.

      Insights gained from studying the semantics of the C/C++ memory model could be applied to the existing code.

      This arose from a discussion around WT-11460; and the purpose of this ticket is to account for effort in facilitating a discussion.

            Assignee:
            marc.butler@mongodb.com Marc Butler (Inactive)
            Reporter:
            marc.butler@mongodb.com Marc Butler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: