Supporting pthreads in libjava on Tru64 UNIX

Richard Henderson rth@redhat.com
Mon Jul 7 20:16:00 GMT 2003


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~


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /