This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Java: hashtable synchronization for PowerPC
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- To: java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 5 Mar 2002 12:12:10 -0800 (PST)
- Subject: Re: Java: hashtable synchronization for PowerPC
- References: <3C819F82.8050806@waitaki.otago.ac.nz>
- Reply-to: apbianco at redhat dot com
Bryce McKinlay writes:
> Look ok?
Sorry about the delay.
> Index: decl.c
> ===================================================================
> RCS file: /cvs/gcc/egcs/gcc/java/decl.c,v
> ...
> +
> + /* Hash synchronization requires at least double-word alignment. */
> + if (flag_hash_synchronization && POINTER_SIZE < 64)
> + TYPE_ALIGN (class_type_node) = 64;
I think this should be written:
if (flag_hash_synchronization &&
POINTER_SIZE < 2 * BITS_PER_UNIT * UNITS_PER_WORD)
TYPE_ALIGN (class_type_node ) = 2 * BITS_PER_UNIT * UNITS_PER_WORD;
./A