This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Supporting pthreads in libjava on Tru64 UNIX
- From: Richard Henderson <rth at redhat dot com>
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Cc: Hans Boehm <boehm at acm dot org>, java at gcc dot gnu dot org
- Date: Mon, 7 Jul 2003 13:16:15 -0700
- Subject: Re: Supporting pthreads in libjava on Tru64 UNIX
- References: <16133.46967.557034.878829@xayide.TechFak.Uni-Bielefeld.DE>
On Fri, Jul 04, 2003 at 07:20:55PM +0200, Rainer Orth wrote:
> " beq %0,3f\n"
> " mb\n"
> "2:\n"
> +# ifdef __ELF__
> ".section .text2,\"ax\"\n"
> +# endif
> "3: br 1b\n"
> +# ifdef __ELF__
> ".previous"
> +# endif
With the ifdefing, you've created an infinite loop.
Just nuke it all and do "beq %0,1b"; ev6 machines
have much better bracnch prediction and don't care
so much about forward vs back branches.
Alternately, if you're using gas, do ".subsection 1"
instead of ".section .text2".
r~