write_barrier() is missing in the libgcj build.  Fixed thusly.

Andrew.


2007-01-22  Andrew Haley  <[EMAIL PROTECTED]>

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

Index: locks.h
===================================================================
--- locks.h     (revision 120859)
+++ locks.h     (working copy)
@@ -50,4 +50,12 @@
   return compare_and_swap(addr, old, new_val);
 }
 
+// Ensure that prior stores to memory are completed with respect to other
+// processors.
+inline static void
+write_barrier()
+{
+  __asm__ __volatile__("wmb" : : : "memory");
+}
+
 #endif

Reply via email to