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

remove write barriers from the TAILQ_INSERT_XXX macros

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.9.0, 3.2.10, 3.3.11
    • Component/s: None
    • Labels:
      None

      Description

      We added write barriers to the BSD TAILQ_INSERT_XXX functions, here's the comment in the include/queue.h file:

      Additionally, we've altered the TAILQ_INSERT_XXX functions to include a write barrier, in order to ensure we never insert a partially built structure onto a list (this is required because the spinlocks we use don't necessarily imply a write barrier).

      The changes for the PPC required all of our spinlocks to imply write barriers, and barriers in the macros are probably no longer required.

      If possible, we should remove those write barriers, and revert to using the unmodified BSD macros.

        Attachments

          Activity

            People

            Assignee:
            keith.bostic Keith Bostic
            Reporter:
            keith.bostic Keith Bostic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: