[lkml]   [2012]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRE: Memory corruption due to word sharing
    On Mit, 2012-02-01 at 21:04 +0000, Boehm, Hans wrote:
    > The C11 memory model potentially adds overhead in only two cases:
    > 1. When current code involves touching a field that wouldn't otherwise
    > be touched. There are odd cases in which this measurably slows down
    > code, but I think all agree that we need it. In addition to
    > bitfields, it can affect speculatively promoting a value to a register
    > in a loop, which at least older versions of gcc also do.

    Just adding an -f option for this and/or activating it only for -O5 (or
    whatever the highest level is) and - in case that feature is activated -
    emit warnings if bitfields (and/or any other data types that might be

    Kind regards,
    Bernd Petrovitsch Email :
    LUGA :

     \ /
      Last update: 2012-02-02 10:33    [W:0.020 / U:3.036 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site