comparison src/share/vm/runtime/arguments.cpp @ 8393:0e2c530885d1

If IgnoreUnrecognizedVMOptions is set then the Graal checks for unsupported options is just a warning instead of an error
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 20 Mar 2013 12:00:18 +0100
parents 3ebe0b86736e
children c3657d00e343
comparison
equal deleted inserted replaced
8392:39b37e601242 8393:0e2c530885d1
2068 } 2068 }
2069 #endif 2069 #endif
2070 } 2070 }
2071 #ifdef GRAAL 2071 #ifdef GRAAL
2072 if (UseCompressedOops) { 2072 if (UseCompressedOops) {
2073 jio_fprintf(defaultStream::error_stream(), 2073 if (IgnoreUnrecognizedVMOptions) {
2074 warning("UseCompressedOops is disabled, because it is not supported by Graal");
2075 FLAG_SET_CMDLINE(bool, UseCompressedOops, false);
2076 } else {
2077 jio_fprintf(defaultStream::error_stream(),
2074 "CompressedOops are not supported in Graal at the moment\n"); 2078 "CompressedOops are not supported in Graal at the moment\n");
2075 status = false; 2079 status = false;
2080 }
2076 } else { 2081 } else {
2077 // This prevents the flag being set to true by set_ergonomics_flags() 2082 // This prevents the flag being set to true by set_ergonomics_flags()
2078 FLAG_SET_CMDLINE(bool, UseCompressedOops, false); 2083 FLAG_SET_CMDLINE(bool, UseCompressedOops, false);
2079 } 2084 }
2080 2085
2081 if (UseCompressedKlassPointers) { 2086 if (UseCompressedKlassPointers) {
2082 jio_fprintf(defaultStream::error_stream(), 2087 if (IgnoreUnrecognizedVMOptions) {
2088 warning("UseCompressedKlassPointers is disabled, because it is not supported by Graal");
2089 FLAG_SET_CMDLINE(bool, UseCompressedKlassPointers, false);
2090 } else {
2091 jio_fprintf(defaultStream::error_stream(),
2083 "UseCompressedKlassPointers are not supported in Graal at the moment\n"); 2092 "UseCompressedKlassPointers are not supported in Graal at the moment\n");
2084 status = false; 2093 status = false;
2094 }
2085 } else { 2095 } else {
2086 // This prevents the flag being set to true by set_ergonomics_flags() 2096 // This prevents the flag being set to true by set_ergonomics_flags()
2087 FLAG_SET_CMDLINE(bool, UseCompressedKlassPointers, false); 2097 FLAG_SET_CMDLINE(bool, UseCompressedKlassPointers, false);
2088 } 2098 }
2089 if (UseG1GC) { 2099 if (UseG1GC) {
2090 jio_fprintf(defaultStream::error_stream(), 2100 if (IgnoreUnrecognizedVMOptions) {
2101 warning("UseG1GC is disabled, because it is not supported by Graal");
2102 FLAG_SET_CMDLINE(bool, UseG1GC, false);
2103 } else {
2104 jio_fprintf(defaultStream::error_stream(),
2091 "G1 is not supported in Graal at the moment\n"); 2105 "G1 is not supported in Graal at the moment\n");
2092 status = false; 2106 status = false;
2107 }
2093 } else { 2108 } else {
2094 // This prevents the flag being set to true by set_ergonomics_flags() 2109 // This prevents the flag being set to true by set_ergonomics_flags()
2095 FLAG_SET_CMDLINE(bool, UseG1GC, false); 2110 FLAG_SET_CMDLINE(bool, UseG1GC, false);
2096 } 2111 }
2097 2112