From owner-freebsd-java Fri Sep 3 13: 4:32 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 0082F14E30; Fri, 3 Sep 1999 13:04:28 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id OAA03108; Fri, 3 Sep 1999 14:03:12 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id OAA04282; Fri, 3 Sep 1999 14:03:11 -0600 Date: Fri, 3 Sep 1999 14:03:11 -0600 Message-Id: <199909032003.OAA04282@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Keith White Cc: Nate Williams , Maruyama Fuyuhiko , java-port@FreeBSD.ORG, freebsd-java@FreeBSD.ORG Subject: Re: Some bugs exist in JDK for FreeBSD. In-Reply-To: References: <199909031555.JAA02569@mt.sri.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > When you try division of two special int values, x86 cpu causes > > > SIGFPE. You can easily see it. Try this "Test.java" compile with > > > FreeBSD's javac. > > > > > > public class Test { > > > public static void main(String[] args) { > > > System.out.println("0x80000000 / -1 = " + (0x80000000/-1)); > > > } > > > } > > > > > > I think only this combination (i.e. 0x80000000/-1) causes unexcepted > > > SIGFPE, so JavaVM may easily handle it. Our JIT compiler can handle > > > it in support functions for JIT compiled methods, but I think JavaVM > > > should handle it by itself! > > > > > > This bug may exist all version of JDK for FreeBSD (may be in Linux > > > version), but I have checked only these versions. > > > > > > jdk1.1.8_AOUT.V99-7-19.tar.gz > > > jdk1.1.8_ELF.V99-7-19.tar.gz > > > > Thanks for pointing this out, we'll look into this! > > I have fixed this bug. The problem is that DIVIDE traps are sent > as SIGFPE and we didn't trap and interpret this signal like Solaris. Since > we need a working executeJava_p5 to trap these signals, I backported the JDK1.2 > cpuid patch. (Now we'll finally be able to use the assembler version of > the JVM for JDK1.1.x. Things should speed up a bit...) > > Commits to follow after 3.x verification. Whoo hoo!!! As always, Keith comes through. :) :) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message