United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7162094 LateInlineCallGenerator::do_late_inline crashed on uninitialized _call_node
JDK-7162094 : LateInlineCallGenerator::do_late_inline crashed on uninitialized _call_node

Details
Type:
Bug
Submit Date:
2012-04-17
Status:
Resolved
Updated Date:
2013-06-26
Project Name:
JDK
Resolved Date:
2012-05-16
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs24
Fixed Versions:
hs24 (b10)

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Duplicate:
Duplicate:

Sub Tasks

Description
LateInlineCallGenerator::do_late_inline crashed on uninitialized _call_node

Adding intValue as a late inline and running the following program crashes the VM:

public class Null {
  public static void main(String[] args) {
    Integer c = new Integer(-1);
    for (int i = 0; i < 1000000000; i++) {
      test(c);
    }
    test(null);
  }

  public static int test(Integer c) {
    return c;
  }
}

                                    
                                
LateInlineCallGenerator::do_late_inline crashed on uninitialized _call_node

Adding intValue as a late inline and running the following program crashes the VM:

public class Null {
  public static void main(String[] args) {
    Integer c = new Integer(-1);
    for (int i = 0; i < 1000000000; i++) {
      test(c);
    }
    test(null);
  }

  public static int test(Integer c) {
    return c;
  }
}

                                    

Comments
EVALUATION

In DirectCallGenerator::generate there are two return paths, only on one is _call_node set. late inline depends on the call node and crashes.
                                     
2012-04-17
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/847da049d62f
                                     
2012-04-17
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/847da049d62f
                                     
2012-05-12
EVALUATION

http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/847da049d62f
                                     
2012-06-29
EVALUATION

In DirectCallGenerator::generate there are two return paths, only on one is _call_node set. late inline depends on the call node and crashes.
                                     
2012-04-17
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/847da049d62f
                                     
2012-04-17
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/847da049d62f
                                     
2012-05-12
EVALUATION

http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/847da049d62f
                                     
2012-06-29



Hardware and Software, Engineered to Work Together