Fix libgcj build failure on Alpha
Andrew Haley
aph@redhat.com
Mon Jan 22 12:24:00 GMT 2007
write_barrier() is missing in the libgcj build. Fixed thusly.
Andrew.
2007年01月22日 Andrew Haley <aph@redhat.com>
* 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
More information about the Java
mailing list