diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-10 03:53:16 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-10 03:53:16 +0000 |
commit | cb0593adb3c527225d9e954232d96a01a325a240 (patch) | |
tree | 5162d3a3b9e4a79ea677ef38bb70205ec3da794b /gcc/java | |
parent | 80b58a84f7924a94d1d40c0b96a76090a0dd8b6d (diff) | |
download | gcc-cb0593adb3c527225d9e954232d96a01a325a240.tar.gz |
libjava:
Hashtable synchronization for PowerPC.
* configure.in: Define SLOW_PTHREAD_SELF if configure.host set
slow_pthread_self. Set up symlink for sysdeps directory.
* configure: Rebuild.
* configure.host: Document more shell variables. Set sysdeps_dir
for most platforms. Set slow_pthread_self for i686. Set
enable_hash_synchronization_default and slow_pthread_self for PowerPC.
* posix-threads.cc (_Jv_ThreadSelf_out_of_line): Use release_set so
that memory barrier is emitted where required.
* prims.cc: 64-bit align static primitive class instances.
* include/posix-threads.h (_Jv_ThreadSelf for SLOW_PTHREAD_SELF): Add
read_barrier() to enforce ordering of reads.
* sysdep/powerpc/locks.h: New file. Implementation of synchronization
primitives for PowerPC.
* sysdep/i386/locks.h: New file. Synchronization primitives for i386
moved from natObject.cc.
* sysdep/alpha/locks.h: Likewise.
* sysdep/ia64/locks.h: Likewise.
* sysdep/generic/locks.h: Likewise.
* java/lang/natObject.cc: Move thread synchronization primitives to
system-dependent headers.
gcc/java:
* decl.c (java_init_decl_processing): Make sure class_type_node
alignment is not less than 64 bits if hash synchronization isenabled.
boehm-gc:
* include/gc_priv.h: Define ALIGN_DOUBLE on 32 bit targets if GCJ
support is enabled, for hash synchronization.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50523 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/decl.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index aaa81d18d68..6b4512f6b68 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2002-03-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz> + + * decl.c (java_init_decl_processing): Make sure class_type_node + alignment is not less than 64 bits if hash synchronization is enabled. + 2002-03-08 Per Bothner <per@bothner.com> * parse.y (java_complete_lhs): Check if patch_assignment diff --git a/gcc/java/decl.c b/gcc/java/decl.c index 86dd5c099da..ddba14ff274 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -605,6 +605,7 @@ java_init_decl_processing () one_elt_array_domain_type = build_index_type (integer_one_node); otable_type = build_array_type (integer_type_node, one_elt_array_domain_type); + TYPE_NONALIASED_COMPONENT (otable_type) = 1; otable_ptr_type = build_pointer_type (otable_type); method_symbol_type = make_node (RECORD_TYPE); @@ -681,6 +682,10 @@ java_init_decl_processing () FIELD_PRIVATE (t) = 1; push_super_field (class_type_node, object_type_node); + /* Hash synchronization requires at least double-word alignment. */ + if (flag_hash_synchronization && POINTER_SIZE < 64) + TYPE_ALIGN (class_type_node) = 64; + FINISH_RECORD (class_type_node); build_decl (TYPE_DECL, get_identifier ("Class"), class_type_node); |