[Bug 361] New: Arithmetic problems

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Mon Jul 6 02:44:33 PDT 2009


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=361

           Summary: Arithmetic problems
           Product: IcedTea
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P3
         Component: IcedTea
        AssignedTo: unassigned at icedtea.classpath.org
        ReportedBy: interface at bitoffice.at


For some reason, the repeated execution of the same calculations fails after
some thousand iterations (Testcase attached).
This happens on PPC32 (Freescale MPC5121e, e300c PowerPC) with IcedTea-1.5 and
Shark. The problem does not occur with IcedTea-1.4.1, no matter if JITted or
interpreted and not with the interpreted version of zero (-Xint) on the exact
same system.

LLVM version is 2.4.

java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.5) (build 1.6.0_0-b16)
OpenJDK Shark VM (build 14.0-b15, mixed mode)

It also looks like the number of iterations needed to fail depends on the CPU
usage by other processes. On an idle CPU I only need ~2500 iterations, on a
busy CPU ~9500.

The problem seems to be at line 37 of the testcase. getVoltage() always returns
the same value (1950.2075), however the division fails after some time
(0.9928497 instead of 0.97510374).


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the distro-pkg-dev mailing list