diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-21 00:26:46 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-21 00:26:46 +0000 |
commit | d30cece008b62a32c342597ac2f1c074c1d510f1 (patch) | |
tree | 9c7009e8040fa889ee77996438bd374542bd3833 /libjava/posix-threads.cc | |
parent | 9f61d5726a1ef8a44fce91ba7764d64d3fadf5b5 (diff) | |
download | gcc-d30cece008b62a32c342597ac2f1c074c1d510f1.tar.gz |
* posix-threads.cc (_Jv_ThreadSelf_out_of_line): Use write_barrier,
not release_set.
* sysdep/powerpc/locks.h (write_barrier): New function.
* sysdep/i386/locks.h (write_barrier): New function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51101 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/posix-threads.cc')
-rw-r--r-- | libjava/posix-threads.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/posix-threads.cc b/libjava/posix-threads.cc index 6442eaffb2f..e92348bcc2c 100644 --- a/libjava/posix-threads.cc +++ b/libjava/posix-threads.cc @@ -448,7 +448,8 @@ _Jv_ThreadSelf_out_of_line(volatile self_cache_entry *sce, size_t high_sp_bits) { pthread_t self = pthread_self(); sce -> high_sp_bits = high_sp_bits; - release_set ((obj_addr_t *) &(sce -> self), self); + write_barrier(); + sce -> self = self; return self; } |