]> granicus.if.org Git - gc/commitdiff
libjava:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Mar 2002 03:53:16 +0000 (03:53 +0000)
committerguest <ivmai@mail.ru>
Fri, 29 Jul 2011 06:54:21 +0000 (10:54 +0400)
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

ChangeLog
include/private/gc_priv.h

index 4b1ac14cb8527526eb5583a90c7d243128fffe17..204d4c924a7d5521f584b59c6bbeb132b7090579 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * include/gc_priv.h: Define ALIGN_DOUBLE on 32 bit targets if GCJ 
+       support is enabled, for hash synchronization.
+
 2002-02-24  Adam Megacz  <adam@xwt.org>
 
        * Makefile.am: Added win32_threads.c to sources list.
index ae406cb9010c7055ee3cd4e6d5cf68b68d080078..642cad8f5d73c5ed6c8e4f173912bb334efbe95e 100644 (file)
@@ -205,6 +205,12 @@ typedef char * ptr_t;      /* A generic pointer to which we can add        */
    /* odd numbered words to have mark bits.                            */
 #endif
 
+#if defined(GC_GCJ_SUPPORT) && ALIGNMENT < 8 && !defined(ALIGN_DOUBLE)
+   /* GCJ's Hashtable synchronization code requires 64-bit alignment.  */
+#  define ALIGN_DOUBLE
+#endif
+
+
 /* ALIGN_DOUBLE requires MERGE_SIZES at present. */
 # if defined(ALIGN_DOUBLE) && !defined(MERGE_SIZES)
 #   define MERGE_SIZES