IV26367: JVM INCORRECTLY REMOVED A CONDITION CHECK WHEN COMPARING TO MIN OR MAX INTEGER

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Error Message: The Java JIT compiler might remove a comparison
    of an integer variable by mistake if it dominates (or is
    dominated by) a comparison of the same integer variable
    against the minimum or maximum integer value. This leads to
    incorrect control flow in the program and could result in a
    variety of associated symptoms such as segmentation fault,
    incorrect output, or hang.
    .
    Stack Trace: N/A
    .
    The following Java code illustrates the problem:
    
    if (i <= 0x7fffffff)  // always true
      {
      if (i < 0)          // sometimes removed by the JIT
        System.out.print("input < 0");
      }
    else
      System.out.print("should never get here");
    
    When the JIT compiler malfunctions in this case, it could remove
    the (i < 0) check, and cause the program to always print "input
    < 0" even if the variable i is positive.
    

Local fix

  • The -Xjit:disableAndSimplification option can be used as a
    workaround. Note that a small performance degradation might
    occur as this disables some compiler optimizations.
    

Problem summary

  • The problem is caused by an incorrect overflow/underflow check
    in the Java  JIT compiler.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR11
    5.0.0 SR14
    .
    The JIT compiler has been updated to resolve the problem
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV26367

  • Reported component name

    JAVA 5 JIT

  • Reported component ID

    620500124

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-16

  • Closed date

    2012-08-16

  • Last modified date

    2013-04-08

  • APAR is sysrouted FROM one or more of the following:

    IV19964

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA 5 JIT

  • Fixed component ID

    620500124

Applicable component levels

  • R500 PSN

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Runtimes for Java Technology
Just In Time (JIT) Compiler

Software version:

5.0

Reference #:

IV26367

Modified date:

2013-04-08

Translate my page

Machine Translation

Content navigation