Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: double to string causes divide by zero!



Philip Crotwell <email@hidden> wrote:

>The error appears for me on both a 10.2.8 dual processor G5 and a
>single processor 10.3.2 G5, but it doesn't seems to happen on 10.3.2 on
>a G4. Very strange, could there be something different about the G5
>with threads in java?

I just thought of something... You can test whether this problem is
related to the JITC's code-generation or not by using the -Xint option to
the 'java' command (type 'java -X' for a summary). The -Xint should
prevent the JITC from compiling any of the bytecodes to native code, and
may affect whether a 64-bit divide opcode is used.

I say "may affect" because there might be code in the JVM interpreter
itself that auto-senses a G5 and then chooses a code-path accordingly.
That is, the plain interpreter could use 64-bit divide. I don't have the
JVM source, so I can't say whether it does this or not, only that it's
technologically possible.

In any case, taking the JITC out of the test might help narrow down where
the failure lies, and if it works with -Xint, could represent a
work-around. As a work-around, it will run about 10X slower, but that's
arguably better than not running at all.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.