-
Bug
-
Resolution: Fixed
-
P3
-
17, 18, 19
-
b27
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8288578 | 20 | Aleksey Shipilev | P3 | Resolved | Fixed | b03 |
JDK-8288804 | 17.0.5-oracle | Tobias Hartmann | P3 | Resolved | Fixed | b01 |
JDK-8289065 | 17.0.5 | Aleksey Shipilev | P3 | Resolved | Fixed | b01 |
$ CONF=linux-x86-server-fastdebug make images run-test TEST=jdk/jfr/jvm/TestGetEventWriter.java
It times out only with C1 -Xcomp. It looks as if this loop is reduced to infinite one:
```
package jdk.jfr.internal;
...
public final class Utils {
...
public static void verifyMirror(Class<?> mirror, Class<?> real) {
Class<?> cMirror = Objects.requireNonNull(mirror);
Class<?> cReal = Objects.requireNonNull(real);
Map<String, Field> mirrorFields = new HashMap<>();
while (cMirror != null) {
for (Field f : cMirror.getDeclaredFields()) {
if (isSupportedType(f.getType())) {
mirrorFields.put(f.getName(), f);
}
}
cMirror = cMirror.getSuperclass();
}
...
}
}
```
Unfortunately, that test is inconvenient to use as the bisection test, because it was only recently added. Luckily, other JFR tests fail as well with the same symptoms:
CONF=linux-x86-server-fastdebug make images run-test TEST=jdk/jfr/api/recording/misc/TestGetStream.java TEST_VM_OPTS="-Xcomp -XX:TieredStopAtLevel=1" JTREG="TIMEOUT_FACTOR=1"
That allows to bisect the hangup to
While this reliably reproduces on x86_32, I believe the bug is actually generic.
- backported by
-
JDK-8288578 C1: Miscompilation due to broken Class.getModifiers intrinsic
- Resolved
-
JDK-8288804 C1: Miscompilation due to broken Class.getModifiers intrinsic
- Resolved
-
JDK-8289065 C1: Miscompilation due to broken Class.getModifiers intrinsic
- Resolved
- relates to
-
JDK-8288317 Enhance C1 regalloc diagnostics to assert hidden control flow
- Open
-
JDK-8289044 ARM32: missing LIR_Assembler::cmove metadata type support
- Resolved
-
JDK-8265711 C1: Intrinsify Class.getModifier method
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/72603ffc
-
Commit openjdk/jdk19/8cd87e73
-
Review openjdk/jdk17u-dev/500
-
Review openjdk/jdk18u/166
-
Review openjdk/jdk19/8