-
Bug
-
Resolution: Fixed
-
P4
-
19, repo-loom
-
b08
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8293593 | 17.0.6-oracle | Dukebot | P4 | Resolved | Fixed | b01 |
JDK-8294214 | 17.0.6 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
serviceability/sa/TestObjectMonitorIterate.java fails in the loom repo:
stderr: [Exception in thread "main" java.lang.NullPointerException: Cannot invoke "sun.jvm.hotspot.oops.Oop.getKlass()" because "<local5>" is null
at TestObjectMonitorIterate.test(TestObjectMonitorIterate.java:63)
at TestObjectMonitorIterate.main(TestObjectMonitorIterate.java:97)
The code in question is:
while (itr.hasNext()) {
ObjectMonitor mon = (ObjectMonitor)itr.next();
Oop oop = heap.newOop(mon.object());
System.out.println("Monitor found: " + oop.getKlass().getName().asString());
}
So it looks like it found an ObjectMonitor, but the Object for the monitor was null for some reason.
This failure does not happen when no VM args are specified. It does happen with:
-Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation
It also happens with just -Xcomp.
stderr: [Exception in thread "main" java.lang.NullPointerException: Cannot invoke "sun.jvm.hotspot.oops.Oop.getKlass()" because "<local5>" is null
at TestObjectMonitorIterate.test(TestObjectMonitorIterate.java:63)
at TestObjectMonitorIterate.main(TestObjectMonitorIterate.java:97)
The code in question is:
while (itr.hasNext()) {
ObjectMonitor mon = (ObjectMonitor)itr.next();
Oop oop = heap.newOop(mon.object());
System.out.println("Monitor found: " + oop.getKlass().getName().asString());
}
So it looks like it found an ObjectMonitor, but the Object for the monitor was null for some reason.
This failure does not happen when no VM args are specified. It does happen with:
-Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation
It also happens with just -Xcomp.
- backported by
-
JDK-8293593 serviceability/sa/TestObjectMonitorIterate.java is failing due to ObjectMonitor referencing a null Object
-
- Resolved
-
-
JDK-8294214 serviceability/sa/TestObjectMonitorIterate.java is failing due to ObjectMonitor referencing a null Object
-
- Resolved
-
- relates to
-
JDK-8280743 HSDB "Monitor Cache Dump" command might throw NPE
-
- Resolved
-
- links to
-
Commit openjdk/jdk17u-dev/0b39137f
-
Commit openjdk/jdk/0740ac47
-
Review openjdk/jdk17u-dev/691
-
Review openjdk/jdk/7238
(2 links to)