JDK-8041992 : Fix of JDK-8034775 neglects to account for non-JIT VMs
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2014-04-28
  • Updated: 2015-01-21
  • Resolved: 2014-05-02
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 8 JDK 9
8u40Fixed 9 b14Fixed
Related Reports
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :


A DESCRIPTION OF THE PROBLEM :
A zero variant build of the latest OpenJDK 9 dev forest fails on 'java -version' with:
CICompilerCount of 0 is invalid; must be at least 1
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Since zero is a non-JIT JVM it should not need any just-in-time compiler threads. Byte codes get interpreted by the C++ Interpreter.

This is a recent local zero build of the OpenJDK 9 dev forest[1]. Specifically revision 783309c3a1a6 of the hotspot repository.

[1] http://hg.openjdk.java.net/jdk9/dev

THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try

THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try

REGRESSION.  Last worked in version 8

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. build latest forest of jdk9 dev: http://hg.openjdk.java.net/jdk9/dev using the zero variant
    (--with-jvm-variants=zero)
2. java -version fails to run

EXPECTED VERSUS ACTUAL BEHAVIOR :
Actual Results:
CICompilerCount of 0 is invalid; must be at least 1
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Expected Results (something along the lines of):
openjdk version "1.9.0-internal-debug"
OpenJDK Runtime Environment (build 1.9.0-internal-debug-sgeholf_2014_04_28_11_14-b00)
OpenJDK 64-Bit Zero VM (build 25.0-b62-debug, interpreted mode)
REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
java -XX:CICompilerCount=1 -version works as expected for zero JVMs.


Comments
Suggested fix: http://jerboaa.fedorapeople.org/bugs/openjdk/JI-9011998/v1/
28-04-2014