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

CompilerControl: tests incorrectly set states for excluded methods

    Details

    • Subcomponent:
    • Resolved In Build:
      b103

      Description

      CompilerControl test framework assumes that exclude option will be overriden by the following compileonly option for the same method.
      But it's not true in the compilerOracle.

      bool CompilerOracle::should_exclude(methodHandle method) {
        if (check_predicate(ExcludeCommand, method)) {
          return true;
        }
        if (lists[CompileOnlyCommand] != NULL) {
          return !lists[CompileOnlyCommand]->match(method);
        }
        return false;
      }

      The compiler/compilercontrol/mixed/RandomValidCommandsTest.java is affected

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ppunegov Pavel Punegov
                Reporter:
                ppunegov Pavel Punegov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: