JDK-6914054 : NullPointerException thrown during array allocation with DeoptimizeALot
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs16
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2010-01-05
  • Updated: 2010-04-03
  • Resolved: 2010-02-08
Related Reports
Duplicate :  
Description
test/closed/compiler/6661918 fails with NullPointerException with DeoptimizeALot
(args: -Xcomp -XX:-PrintVMOptions -XX:CompileThreshold=100 -XX:+DeoptimizeALot -XX:-DoEscapeAnalysis -XX:DefaultMaxRAMFraction=8):

public final class DerivedClass /* extends Object */ {
}

    public static boolean run() {
        Object[][][][][] x = new Object[1][2][][][];
        x[0][0] = new DerivedClass[3][4][5]; <<<<<<<<<<< NullPointerException here !!!
        x[0][0][0][0][0] = new DerivedClass();

        return (x[0][0] instanceof DerivedClass[][][]);
    }

java.lang.NullPointerException
    at Test6661918.run(Test6661918.java:22)
    at Test6661918.main(Test6661918.java:12)