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

compiler/profiling/TestTypeProfiling.java: make it not throw if C2 is not enabled.

XMLWordPrintable

    • Verified

      The test should throw SkippedException, use '@requires compiler.c2', or do some other cool stuff, but not fail when started with something like "-XX:TieredStopAtLevel=2"

      Sample stacktrace:

      java.lang.RuntimeException: please enable C2
      at compiler.profiling.TestTypeProfiling.main(TestTypeProfiling.java:94)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:830)

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

              Created:
              Updated:
              Resolved: