[concurrency-interest] Basic question about memory barriers
radhakrishnan.mohan at gmail.com
Mon Dec 5 02:01:59 EST 2011
I think this corresponds to "8.2.2 Memory Ordering in P6 and
More Recent Processor Families" in Intel® 64 and IA-32 Architectures
Software Developer’s Manual ? They mention fence instructions there.
On Mon, Nov 28, 2011 at 3:48 PM, David Holmes <davidcholmes at aapt.net.au> wrote:
> Mohan Radhakrishnan writes:
>> 1. Who issues the memory barriers ?
> In the context of Java it is the runtime support code of the JVM together
> with the code emitted by the JIT.
>> 2. Can I look at memory barriers in machine code ? Is it done by
>> the processor ?
> The "barriers" depend on the architecture. They can be explicit
> synchronization instructions; modes applied to loads and stores; or specific
> instruction sequences (eg dependent loads) that produce the desired effect.
> See the Java Memory Model Cookbook for compiler writers to learn more:
> David Holmes
>> Concurrency-interest mailing list
>> Concurrency-interest at cs.oswego.edu
More information about the Concurrency-interest