IBM Support

IJ59967: JVM CRASHES WHILE COMPILING A METHOD

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: The JVM crashes while the JIT is compiling a
    method.
    .
    Stack Trace: It can be challenging to get the full call stack,
    but the problem happens while estimating the size of a method
    during inlining:
    {_ZN11TR_J9VMBase24getResolvedVirtualMethodEP19TR_OpaqueClassBlo
    ckib} +217
    {_ZThn88_N19TR_ResolvedJ9Method24getResolvedVirtualMethodEPN2TR1
    1CompilationEP19TR_OpaqueClassBlockib} +38
    {_ZN32TR_InvariantArgumentPreexistence23devirtualizeVirtualCallE
    PN2TR4NodeEPNS0_7TreeTopEP19TR_OpaqueClassBlock} +159
    {_ZN32TR_InvariantArgumentPreexistence19processIndirectCallEPN2T
    R4NodeEPNS0_7TreeTopEt} +4782
    {_ZN32TR_InvariantArgumentPreexistence11processNodeEPN2TR4NodeEP
    NS0_7TreeTopEt} +78
    {_ZN32TR_InvariantArgumentPreexistence7performEv} +3010
    {_ZN3OMR9Optimizer19performOptimizationEPK20OptimizationStrategy
    iii.localalias} +3053
    {_ZN3OMR9Optimizer8optimizeEv} +523
    {_ZN3OMR20ResolvedMethodSymbol5genIL...} +865
    {_ZN23TR_ResolvedJ9MethodBase22_genMethodILForPeeking...} +512
    {_ZN21TR_J9EstimateCodeSize20realEstimateCodeSize...} +2286
    {_ZN21TR_J9EstimateCodeSize20realEstimateCodeSizeEP13TR_CallTarg
    etP12TR_CallStackbRN2TR6RegionEi} +6469
    {_ZN21TR_J9EstimateCodeSize20realEstimateCodeSizeEP13TR_CallTarg
    etP12TR_CallStackbRN2TR6RegionEi} +6469
    {_ZN21TR_J9EstimateCodeSize16estimateCodeSizeEP13TR_CallTargetP1
    2TR_CallStackbi.localalias} +69
    {_ZN19TR_EstimateCodeSize17calculateCodeSizeEP13TR_CallTargetP12
    TR_CallStackb} +165
    {_ZN28TR_MultipleCallTargetInliner13weighCallSiteEP12TR_CallStac
    kP11TR_CallSitebb} +529
    {_ZN28TR_MultipleCallTargetInliner17inlineCallTargetsEPN2TR20Res
    olvedMethodSymbolEP12TR_CallStackP24TR_InnerPreexistenceInfo}
    +4701
    {_ZN14TR_InlinerBase15performInliningEPN2TR20ResolvedMethodSymbo
    lE} +172
    .
    In the only reported examples of this problem the method that
    triggers the failure is a generated method similar to
    java/lang/invoke/LambdaForm$MH/0x0000000069a37b30.invoke(Ljava/l
    ang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object
    ;)Ljava/lang/Object;
    where the hex value prior to .invoke varies.
    

Local fix

  • The problematic method that triggers the failure can be excluded
    from being compiled by the JIT using a Java command line option:
    -Xjit:exclude={java/lang/invoke/LambdaForm$MH*.invoke(*},dontInl
    ine={java/lang/invoke/LambdaForm$MH*.invoke(*}
    If there is already an Xjit option being used it will be
    necessary to either manually merge the two into a single
    combined option or to also add the following to have the JVM do
    the merging (by default only the last Xjit option will be
    active)
    -XX:+MergeCompilerOptions
    

Problem summary

  • While compiling a complex method it's possible for the JIT
    compiler to attempt to use a class pointer for a class that has
    been redefined while attempting to estimate the size of a called
    
    method. A redefined class doesn't have a valid virtual function
    table so attempting to use it in getResolvedVirtualMethod can
    result in a crash.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IJ59967

  • Reported component name

    JIT

  • Reported component ID

    620700124

  • Reported release

    290

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2026-09-18

  • Closed date

    2026-09-19

  • Last modified date

    2026-10-06

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

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

Fix information

  • Fixed component name

    JIT

  • Fixed component ID

    620700124

Applicable component levels

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
06 October 2026