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

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

    XMLWordPrintable

Details

    • Verified

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: