lkml.org 
[lkml]   [2016]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: interesting commit about llvm introducing barrier_data()
Date
Am Dienstag, 23. Februar 2016, 14:32:43 schrieb Mathieu Desnoyers:

Hi Mathieu,

> ----- On Feb 23, 2016, at 9:23 AM, Paul E. McKenney
paulmck@linux.vnet.ibm.com wrote:
> > On Tue, Feb 23, 2016 at 02:02:26PM +0000, Mathieu Desnoyers wrote:
> >> commit 7829fb09a2b4268b30dd9bc782fa5ebee278b137
> >> Author: Daniel Borkmann <daniel@iogearbox.net>
> >> Date: Thu Apr 30 04:13:52 2015 +0200
> >>
> >> lib: make memzero_explicit more robust against dead store elimination
> >>
> >> ^ interesting commit. Any idea on the impact of this on kernel RCU
> >> implementation and liburcu cmm_barrier() ?
> >
> > First I knew of it! But I bet that more like this are needed. ;-)
>
> I recommend you check my IRC discussion with peterz on the matter of
> this new "barrier_data()".
>
The key idea of the memzero_explicit is about forcing the compiler to do a
memset.

See the trivial test attached.

Ciao
Stephan[unhandled content-type:application/x-xz]
\
 
 \ /
  Last update: 2016-02-23 16:01    [W:0.060 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site