From owner-freebsd-java Tue Mar 16 10:53:43 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (Postfix) with ESMTP id B747415312 for ; Tue, 16 Mar 1999 10:52:53 -0800 (PST) (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 LAA24959; Tue, 16 Mar 1999 11:52:34 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id LAA05728; Tue, 16 Mar 1999 11:52:20 -0700 Date: Tue, 16 Mar 1999 11:52:20 -0700 Message-Id: <199903161852.LAA05728@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: SHUDO Kazuyuki Cc: Nate Williams , freebsd-java@FreeBSD.ORG Subject: Re: jre1.1.7 core dump on FreeBSD 3.1 (intel) In-Reply-To: <199903110420.NAA03845@cafe.muraoka.info.waseda.ac.jp> References: <199903110107.SAA12226@mt.sri.com> <199903110420.NAA03845@cafe.muraoka.info.waseda.ac.jp> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > FreeBSD don't mask some floating point exceptions which > are masked on initial state of x87. Overflow(OM), > Devided by zero(ZM) and illegal operation(IM) aren't > masked. > > Does JDK for FreeBSD change these FPU exception masks > from default value? > > We can investigate the states of the masks by the > following code: > > #include > int main(int argc, char **argv) { > unsigned short cw; > __asm__("fnstcw %0" : "=m"(cw)); > printf("FPU control word: 0x%04x\n", (int)cw); > return 0; > } > > The code shows FPU control word. > On linux: 0x037f > On FreeBSD: 0x1272 For what it's worth (this jumped out while I was working on Steve Price's ELF patches to JDK1.1.7), the FPU mask in the JDK is set to 0x127f. (See javasrc/src/freebsd/java/green_threads/src/context.c). I'm not sure what Linux uses, but it may be similar. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message