JDK-8140667 : CompilerControl: tests incorrectly set states for excluded methods
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-10-28
  • Updated: 2016-04-26
  • Resolved: 2015-12-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b103Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Sub Tasks
JDK-8140668 :  
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