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

TestPrivilegedMode.java is missing some requirements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 24
    • 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.

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

              Created:
              Updated:
              Resolved: