RFR(XS): 8145333: -XX:+EnableJVMCI -XX:+UseJVMCICompiler -XX:-EnableJVMCI makes JVM crash

Christian Thalinger christian.thalinger at oracle.com
Thu Feb 11 18:01:16 UTC 2016


> On Feb 11, 2016, at 3:47 AM, Jamsheed C m <jamsheed.c.m at oracle.com> wrote:
> 
> Hi,
> 
> Request for review
> 
> bug url:  https://bugs.openjdk.java.net/browse/JDK-8145333
> web url: http://cr.openjdk.java.net/~thartmann/8145333/webrev.00/ <http://cr.openjdk.java.net/~thartmann/8145333/webrev.00/>

That looks alright but we should remove the constraints from all the JVMCI command line flags because the way we use them is not supported.

Also, can you change the error message?  Right now it looks like this:

$ ./build/macosx-x86_64-normal-server-release/jdk/bin/java -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler
EnableJVMCI must be enabled
Improperly specified VM option 'UseJVMCICompiler'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I think with your changes we will only see the first line without mentioning UseJVMCICompiler.  Is that correct?

> 
> Fix Summary: added jvmci flag consistency check after arg parsing.
> 
> tests: jprt
> unit test: command line verification
> 
> Best Regards,
> Jamsheed

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20160211/0eb7894f/attachment.html>


More information about the hotspot-compiler-dev mailing list