JDK-6663926 : Erroneous execution results when C2 -Xcomp is used
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 6u10
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: generic
  • Submitted: 2008-02-15
  • Updated: 2012-02-01
  • Resolved: 2008-03-05
Related Reports
Duplicate :  
Description
Test execution results are erroneous when C2 with -Xcomp is used.

-Xint:
[
Tester.var_8 = 118
Tester.var_5 = 2076285318
Tester.var_7 = 73
Tester.var_6 = 1.39254183239738E308
]

-server -Xcomp:
[
Tester.var_8 = 118
Tester.var_5 = 2076285318
Tester.var_7 = 84
Tester.var_6 = 1.39254183239738E308
]

I observe such behavior on linux-x86/x64 with both JDK 6u10b11 and JDK 7b24.

Testcase is attached.
Added a testcase with similar error.
Added a number of cases with similar failure.
Don't know whether it's the same bug or not.
Also observed with HS10 (10.0-b19, jdk6u5-b11).