TestPrivilegedMode.java is missing some requirements

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 24
    • Component/s: hotspot

      The recently (JDK-8337876) added TestPrivilegedMode.java IR framework test fails when run in a non-debug build.

      We see the following messages in the log:

      "IR verification disabled due to not running a debug build (required for PrintIdealand PrintOptoAssembly), running with -Xint, or -Xcomp (use warm-up of 0 instead) Skip Flag VM due to not performing IR verification."

      "IR verification disabled either due to no @IR annotations, through explicitly setting -DVerify=false, due to not running a debug build, using a non-whitelisted JTreg VM or Javaopts flag like -Xint, or running the test VM with other VM flags added by user code that make the IR verification impossible (e.g. -XX:-UseCompile, -XX:TieredStopAtLevel=[1,2,3], etc.)."

      The test already specifies it requires `vm.flagless` (which covers many of the potential issues mentioned in those messages). However, it does not specify it requires `vm.debug == true`. Other similar tests also specify they require `vm.compiler2.enabled`, which seems like it would be needed here too.

            Assignee:
            Unassigned
            Reporter:
            Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: