JDK-8273807 : Zero: Drop incorrect test block from compiler/startup/NumCompilerThreadsCheck.java
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,17,18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-09-15
  • Updated: 2021-10-04
  • Resolved: 2021-09-16
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 17 JDK 18
17.0.2Fixed 18 b16Fixed
Related Reports
Relates :  
Description
There is a Zero-specific test block in compiler/startup/NumCompilerThreadsCheck.java, which currently fails:

$ CONF=linux-x86_64-zero-fastdebug make exploded-test TEST=compiler/startup/NumCompilerThreadsCheck.java
...

STDERR:
 stdout: [];
 stderr: [intx CICompilerCount=-1 is outside the allowed range [ 0 ... 2147483647 ]
Improperly specified VM option 'CICompilerCount=-1'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
]
 exitValue = 1

java.lang.RuntimeException: 'must be at least 0' missing from stdout/stderr 

	at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
	at compiler.startup.NumCompilerThreadsCheck.main(NumCompilerThreadsCheck.java:53)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
	at java.base/java.lang.Thread.run(Thread.java:833)

I believe it was rendered obsolete by JDK-8122937.
Comments
Fix Request (17u) Fixes test for Zero. Applies cleanly. Test starts to pass.
01-10-2021

Changeset: 1c5de8b8 Author: Aleksey Shipilev <shade@openjdk.org> Date: 2021-09-16 08:12:31 +0000 URL: https://git.openjdk.java.net/jdk/commit/1c5de8b86b038f5d5c313c504a8868e36fc80bde
16-09-2021

ILW = Single test failure on Zero, only affects Zero, no workaround = MLH = P4
15-09-2021