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

CompilerControl: tests incorrectly set states for excluded methods

    • 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

          [JDK-8140667] CompilerControl: tests incorrectly set states for excluded methods

          HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/341f88e8e84e
          User: lana
          Date: 2016-01-27 21:42:23 +0000

          HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/341f88e8e84e User: lana Date: 2016-01-27 21:42:23 +0000

          HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/hs-comp/hotspot/rev/341f88e8e84e
          User: iignatyev
          Date: 2015-12-08 23:03:33 +0000

          HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs-comp/hotspot/rev/341f88e8e84e User: iignatyev Date: 2015-12-08 23:03:33 +0000

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

              Created:
              Updated:
              Resolved: