Commit 507a4fd4 by Richard Henderson Committed by Richard Henderson

* sysdep/alpha/locks.h (read_barrier): New.

From-SVN: r121774
parent 999ffb1a
2007-02-09 Richard Henderson <rth@redhat.com>
* sysdep/alpha/locks.h (read_barrier): New.
2007-02-09 Keith Seitz <keiths@redhat.com> 2007-02-09 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/VMVirtualMachine.java * gnu/classpath/jdwp/VMVirtualMachine.java
......
...@@ -50,6 +50,14 @@ compare_and_swap_release(volatile obj_addr_t *addr, ...@@ -50,6 +50,14 @@ compare_and_swap_release(volatile obj_addr_t *addr,
return compare_and_swap(addr, old, new_val); return compare_and_swap(addr, old, new_val);
} }
// Ensure that subsequent instructions do not execute on stale
// data that was loaded from memory before the barrier.
inline static void
read_barrier()
{
__asm__ __volatile__("mb" : : : "memory");
}
// Ensure that prior stores to memory are completed with respect to other // Ensure that prior stores to memory are completed with respect to other
// processors. // processors.
inline static void inline static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment