# HG changeset patch # User Gilles Duboscq # Date 1363777218 -3600 # Node ID 0e2c530885d101ecf6d33f077060c3950b93638c # Parent 39b37e601242a9ba02df85051de4022d7aa78bcb If IgnoreUnrecognizedVMOptions is set then the Graal checks for unsupported options is just a warning instead of an error diff -r 39b37e601242 -r 0e2c530885d1 src/share/vm/runtime/arguments.cpp --- a/src/share/vm/runtime/arguments.cpp Wed Mar 20 11:59:25 2013 +0100 +++ b/src/share/vm/runtime/arguments.cpp Wed Mar 20 12:00:18 2013 +0100 @@ -2070,26 +2070,41 @@ } #ifdef GRAAL if (UseCompressedOops) { - jio_fprintf(defaultStream::error_stream(), + if (IgnoreUnrecognizedVMOptions) { + warning("UseCompressedOops is disabled, because it is not supported by Graal"); + FLAG_SET_CMDLINE(bool, UseCompressedOops, false); + } else { + jio_fprintf(defaultStream::error_stream(), "CompressedOops are not supported in Graal at the moment\n"); - status = false; + status = false; + } } else { // This prevents the flag being set to true by set_ergonomics_flags() FLAG_SET_CMDLINE(bool, UseCompressedOops, false); } if (UseCompressedKlassPointers) { - jio_fprintf(defaultStream::error_stream(), + if (IgnoreUnrecognizedVMOptions) { + warning("UseCompressedKlassPointers is disabled, because it is not supported by Graal"); + FLAG_SET_CMDLINE(bool, UseCompressedKlassPointers, false); + } else { + jio_fprintf(defaultStream::error_stream(), "UseCompressedKlassPointers are not supported in Graal at the moment\n"); - status = false; + status = false; + } } else { // This prevents the flag being set to true by set_ergonomics_flags() FLAG_SET_CMDLINE(bool, UseCompressedKlassPointers, false); } if (UseG1GC) { - jio_fprintf(defaultStream::error_stream(), + if (IgnoreUnrecognizedVMOptions) { + warning("UseG1GC is disabled, because it is not supported by Graal"); + FLAG_SET_CMDLINE(bool, UseG1GC, false); + } else { + jio_fprintf(defaultStream::error_stream(), "G1 is not supported in Graal at the moment\n"); - status = false; + status = false; + } } else { // This prevents the flag being set to true by set_ergonomics_flags() FLAG_SET_CMDLINE(bool, UseG1GC, false);