title: Java equivalent to Thread.MemoryBarrier
body: <p>In Java, how can I explicitly trigger a full memory fence/barrier, equal to the invocation of</p>
  
  <pre><code>System.Threading.Thread.MemoryBarrier();
  </code></pre>
  
  <p>in C#?</p>
  
  <p>I know that since Java 5 reads and writes to <code>volatile</code> variables have been causing a full memory fence, but maybe there is an (efficient) way without <code>volatile</code>.</p>