JDK-8149337 : compiler/compilercontrol/jcmd/PrintDirectivesTest.java fails
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-02-08
  • Updated: 2023-07-21
  • Resolved: 2023-07-21
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
9Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
Exception in thread "main" java.lang.RuntimeException: FAILED: method public void pool.sub.Klass.method(int,java.lang.String[],java.lang.Integer,byte[],double[][]) compilable: true, but should: false on required level: 1 (assert failed: true == false)
	at jdk.test.lib.Asserts.error(Asserts.java:447)
	at jdk.test.lib.Asserts.assertTrue(Asserts.java:374)
	at jdk.test.lib.Asserts.assertEquals(Asserts.java:169)
	at jdk.test.lib.Asserts.assertEQ(Asserts.java:143)
	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:141)
	at java.util.ArrayList.forEach(ArrayList.java:1297)
	at compiler.compilercontrol.share.actions.BaseAction.check(BaseAction.java:139)
	at compiler.compilercontrol.share.actions.BaseAction.communicate(BaseAction.java:100)
	at compiler.compilercontrol.share.actions.BaseAction.main(BaseAction.java:59)

Could be related to JDK-8140350 or JDK-8140405.
Comments
Tp summarize this bug: All recent aurora links to failures are to PIT-runs. I have tested every failed test with the seed in the jtr-files and none reproduces in hs-comp. This bug was fixed in hs-comp a long time ago but the stalled for almost two months before reaching jdk9/dev. Fixed by: https://bugs.openjdk.java.net/browse/JDK-8140667 PrintDirectivesTest is still ignored due to the OOM issue in JDK-8140354
17-02-2016

-Djdk.test.lib.random.seed=-7528672989023589535
17-02-2016

I see the problem. There is a corner case with EnableOptions default value. In this case the directive has Enable false even though it is explicitly set to true. This happens when Enable is the only option that is set. The good thing is that I already have a fix for this.
12-02-2016

This test is excluded in hs-comp due to JDK-8140354.
10-02-2016

RULE "compiler/compilercontrol/jcmd/PrintDirectivesTest.java" Exception stderr: [Exception in thread "main" java.lang.RuntimeException: FAILED: method public void pool.sub.Klass.method() compilable: true, but should: false on required level: ... (assert failed: true == false)
09-02-2016