[lkml]   [2011]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 13/15] x86: add cmpxchg_flag() variant
    On Tue, 23 Aug 2011, Jeremy Fitzhardinge wrote:

    > However, having prototyped it, I dunno, it doesn't really seem like much
    > of a win for all the extra code it adds. I just can't get too excited
    > about an extra test instruction adjacent to a monster like a locked
    > cmpxchg. The jump variant avoids the test, but gcc still generates some
    > pretty bogus stuff:

    There are also unlocked cmpxchges in use. And if the cmpxchg is a 16 byte
    cmpxchg (cmpxchg_double) then the comparison is getting more expensive.

     \ /
      Last update: 2011-08-24 15:57    [W:0.019 / U:17.316 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site