Hi Albrecht,

> > The following program causes the Linux JDK 1.1.7v3 to crash with a
> > SIGFPE. This is because the x86 causes an arithmetic exception when
> > you divide 0x80000000 by -1; the JVM spec, however, says that the result
> > of this should be 0x80000000 with NO exception thrown. (The fix is to catch
> > the SIGFPE and tweak the stack with the right value.)

> If you use the TYA JIT please apply the following patch to fix this:
>
> --- tyarecode.c.265   Sat Jun 19 19:35:49 1999
> +++ tyarecode.c       Fri Jun 25 18:40:47 1999

You should treat an `irem' bytecode instruction not only `idiv'.

I've fixed my JIT (http://www.shudo.net/jit/)
with SIGFPE as a suggestion by Matt.
Thanks to Matt.

Kazuyuki SHUDO                          Happy Hacking!
  Muraoka Lab., Grad. School of Sci. & Eng., Waseda Univ.


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to