Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6914054

NullPointerException thrown during array allocation with DeoptimizeALot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • hs16
    • hotspot
    • None
    • generic
    • generic

      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)

            Unassigned Unassigned
            iveresov Igor Veresov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: