Reproducer:
```
import java.util.TimeZone;
public class TimeZoneTest {
public static void main(String[] argv) {
System.out.println(TimeZone.getDefault());
}
}
```
When executed as
```
$JAVA_HOME/bin/java -cp . -XX:+StressReflectiveCode -Xcomp TimeZoneTest
```
this fails as assertion:
```
# assert(verify(phase)) failed: missing Value() optimization
#
# JRE version: OpenJDK Runtime Environment (23.0) (fastdebug build 23-internal-adhoc.rvansa.jdk)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 23-internal-adhoc.rvansa.jdk, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x188d667] SubTypeCheckNode::Ideal(PhaseGVN*, bool)+0x3f7
```
Found on JDK 21, reproduced with recent build of master branch.
```
import java.util.TimeZone;
public class TimeZoneTest {
public static void main(String[] argv) {
System.out.println(TimeZone.getDefault());
}
}
```
When executed as
```
$JAVA_HOME/bin/java -cp . -XX:+StressReflectiveCode -Xcomp TimeZoneTest
```
this fails as assertion:
```
# assert(verify(phase)) failed: missing Value() optimization
#
# JRE version: OpenJDK Runtime Environment (23.0) (fastdebug build 23-internal-adhoc.rvansa.jdk)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 23-internal-adhoc.rvansa.jdk, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x188d667] SubTypeCheckNode::Ideal(PhaseGVN*, bool)+0x3f7
```
Found on JDK 21, reproduced with recent build of master branch.
- duplicates
-
JDK-8323727 [REDO] C2 compilation fails with assert(verify(phase)) failed: missing Value() optimization
-
- Open
-
- relates to
-
JDK-8284951 Compile::flatten_alias_type asserts with "indeterminate pointers come only from unsafe ops"
-
- Resolved
-