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

java.util.TimeZone.getDefault compilation fails with -XX:+StressReflectiveCode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 23
    • hotspot
    • None

      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.

            thartmann Tobias Hartmann
            rvansa Radim Vansa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: