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

Exception description is missing in JIT-compiled code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 24, 25
    • hotspot

      The diff of stderr shows this (interpreted code on top):

      < Caused by: java.lang.ClassCastException
      ---
      > Caused by: java.lang.ClassCastException: class java.util.HashSet cannot be cast to class Test_355_Class_3 (java.util.HashSet is in module java.base of loader 'bootstrap'; Test_355_Class_3 is in unnamed module of loader 'app')
      > at Test_355_Class_8.<clinit>(Test_355.java:839)
      > ... 1 more

      The interpreted code used these args:
       -Xmx1G -XX:+IgnoreUnrecognizedVMOptions -Xint

      ... while the JIT-compiled run used these:

      -Xmx1G -XX:+IgnoreUnrecognizedVMOptions -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::* -XX:-TieredCompilation -Xcomp -XX:+UnlockDiagnosticVMOptions -XX:+StressLCM -XX:+StressGCM -XX:+StressIGVN -XX:+StressCCP -XX:+StressMacroExpansion -XX:StressSeed=1141049105 -XX:+UnlockExperimentalVMOptions -XX:PerMethodSpecTrapLimit=0 -XX:PerMethodTrapLimit=0 -XX:+VerifyLoopOptimizations -XX:VerifyIterativeGVN=10 Test_355

      Please find attached the fuzzy test that caught the problem.

            Unassigned Unassigned
            enikitin Evgeny Nikitin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: