IBM Support

IV33529: ILLEGALMONITORSTATEEXCEPTION THROWN BY JIT-COMPILED METHOD

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Error Message: An IllegalMonitorStateException is thrown by a
    Java method that has been re-compiled at higher optimization
    levels. The throwing method likely has been inlined into a loop
    in its caller.
    .
    Stack Trace: N/A
    .
    

Local fix

  • This issue can be worked around using the
    -Xjit:disableRedundantMonitorElimination option.
    

Problem summary

  • This problem occurs when the inlining of a virtual method is
    disabled for correctness, e.g. after the loading of a new class
    that implements the same method. If the inlined call site is on
    a code path that locks multiple objects, the compensating code
    generated by the JIT compiler incorrectly attempts to unlock the
    same object twice.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR12
    5.0.0 SR16
    6.0.1 SR5
    7.0.0 SR4
    .
    The JIT compiler has been updated to generate correct code for
    the non-inlined virtual method call sequence.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV33529

  • 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-12-17

  • Closed date

    2012-12-18

  • Last modified date

    2012-12-18

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

    IV33528

  • 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 PSY

       UP



Document information

More support for: Runtimes for Java Technology
Just In Time (JIT) Compiler

Software version: 5.0

Reference #: IV33529

Modified date: 18 December 2012