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

[lworld] FieldLayoutAnalyzer::checkSubClasses fails with NullPointerException: Cannot read field

XMLWordPrintable

      We see massive failures of the following test in Valhalla with non-default VM options like '-XX:-UseCompressedOops -XX:-UseCompressedClassPointers -Xint' or '-XX:+UseZGC -Xint' (see attached log files):

      test/hotspot/jtreg/runtime/valhalla/inlinetypes/field_layout/ValueFieldInheritanceTest.java
      test/hotspot/jtreg/runtime/valhalla/inlinetypes/field_layout/FieldAlignmentTest.java
      test/hotspot/jtreg/runtime/valhalla/inlinetypes/field_layout/NullMarkersTest.java

      java.lang.NullPointerException: Cannot read field "nonStaticFields" because "<local4>" is null
      at FieldLayoutAnalyzer.checkSubClasses(FieldLayoutAnalyzer.java:506)
      at FieldLayoutAnalyzer.check(FieldLayoutAnalyzer.java:581)
      at ValueFieldInheritanceTest.main(ValueFieldInheritanceTest.java:240)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1575)

            fparain Frederic Parain
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: