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

CompilerControl: tests incorrectly set states for excluded methods

XMLWordPrintable

    • b103

      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

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

              Created:
              Updated:
              Resolved: