summaryrefslogtreecommitdiff
path: root/libjava/sysdep
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-10 17:50:40 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-10 17:50:40 +0000
commit542e3f5262bdc12376c3f31488f991a6a5d6f421 (patch)
tree2a5262f55f18b8ef492a47238acc7b36632e4d3e /libjava/sysdep
parent3de198441d96c3313172e620987bcc4537cfcef8 (diff)
downloadgcc-542e3f5262bdc12376c3f31488f991a6a5d6f421.tar.gz
2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
PR libgcj/30424 * sysdep/ia64/locks.h (read_barrier): New. (write_barrier): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120645 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/sysdep')
-rw-r--r--libjava/sysdep/ia64/locks.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libjava/sysdep/ia64/locks.h b/libjava/sysdep/ia64/locks.h
index bde43b420fb..1a861b2e3dd 100644
--- a/libjava/sysdep/ia64/locks.h
+++ b/libjava/sysdep/ia64/locks.h
@@ -46,4 +46,16 @@ compare_and_swap_release(volatile obj_addr_t *addr,
return (out == old);
}
+inline static void
+read_barrier()
+{
+ __sync_synchronize ();
+}
+
+inline static void
+write_barrier()
+{
+ __sync_synchronize ();
+}
+
#endif