JDK-8140350 : [Testbug] compiler control tests fail with compiled: true, but should: false on required level: 1
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-10-22
  • Updated: 2016-02-08
  • Resolved: 2015-10-28
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 b92Fixed
Related Reports
Relates :  
Relates :  
Description
 stderr: [Exception in thread "main" java.lang.RuntimeException: FAILED: method public java.lang.Double pool.sub.Klass$Internal.methodDup() compiled: false, but should: true on required level: 1 (assert failed: false == true)
	at jdk.test.lib.Asserts.error(Asserts.java:444)
	at jdk.test.lib.Asserts.assertTrue(Asserts.java:371)
	at jdk.test.lib.Asserts.assertEquals(Asserts.java:166)
	at jdk.test.lib.Asserts.assertEQ(Asserts.java:140)
	at compiler.compilercontrol.share.actions.CompileAction.checkCompilation(CompileAction.java:83)
	at compiler.compilercontrol.share.actions.CompileAction.checkCompiled(CompileAction.java:63)
	at compiler.compilercontrol.share.actions.BaseAction.lambda$check$2(BaseAction.java:120)
	at java.util.ArrayList.forEach(ArrayList.java:1262)
	at compiler.compilercontrol.share.actions.BaseAction.check(BaseAction.java:118)
	at compiler.compilercontrol.share.actions.BaseAction.main(BaseAction.java:85)
]
Comments
Fix: http://cr.openjdk.java.net/~ppunegov/8140350/webrev.00/
26-10-2015

Th root cause of the tests that assume that method shouldn't be compiled is that they shouldn't check compilation with WB.isMethodCompiled. Method could be already compiled on the 4th level, while originally submitted to the 1st level.
23-10-2015