[GHC] #9350: Consider using xchg instead of mfence for CS stores

GHC ghc-devs at haskell.org
Wed Jul 23 11:38:23 UTC 2014


#9350: Consider using xchg instead of mfence for CS stores
-------------------------------------+-------------------------------------
              Reporter:  tibbe       |            Owner:
                  Type:  feature     |           Status:  new
  request                            |        Milestone:
              Priority:  normal      |          Version:  7.9
             Component:  Compiler    |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Easy (less than 1
  Unknown/Multiple                   |  hour)
       Type of failure:              |       Blocked By:
  None/Unknown                       |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by tibbe):

 Herb Sutter argues for using `xchg` over `mfence` in
 [http://channel9.msdn.com/Shows/Going+Deep/Cpp-and-Beyond-2012-Herb-
 Sutter-atomic-Weapons-2-of-2 C++ and Beyond 2012: Herb Sutter - atomic<>
 Weapons, 2 of 2], around 0:38:20.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9350#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list