equal
deleted
inserted
replaced
27 #include "runtime/commandLineFlagConstraintsCompiler.hpp" |
27 #include "runtime/commandLineFlagConstraintsCompiler.hpp" |
28 #include "runtime/globals.hpp" |
28 #include "runtime/globals.hpp" |
29 #include "utilities/defaultStream.hpp" |
29 #include "utilities/defaultStream.hpp" |
30 |
30 |
31 Flag::Error AliasLevelConstraintFunc(bool verbose, intx* value) { |
31 Flag::Error AliasLevelConstraintFunc(bool verbose, intx* value) { |
32 if (CommandLineFlags::finishedInitializing() == true) { |
32 if ((*value <= 1) && (Arguments::mode() == Arguments::_comp)) { |
33 if ((*value <= 1) && (Arguments::mode() == Arguments::_comp)) { |
33 if (verbose == true) { |
34 if (verbose == true) { |
34 jio_fprintf(defaultStream::error_stream(), |
35 jio_fprintf(defaultStream::error_stream(), |
35 "AliasLevel (" INTX_FORMAT ") is not compatible " |
36 "AliasLevel (" INTX_FORMAT ") is not compatible " |
36 "with -Xcomp \n", |
37 "with -Xcomp \n", |
37 *value); |
38 *value); |
|
39 } |
|
40 return Flag::VIOLATES_CONSTRAINT; |
|
41 } |
38 } |
|
39 return Flag::VIOLATES_CONSTRAINT; |
|
40 } else { |
|
41 return Flag::SUCCESS; |
42 } |
42 } |
43 return Flag::SUCCESS; |
|
44 } |
43 } |
45 |
44 |
46 /** |
45 /** |
47 * Validate the minimum number of compiler threads needed to run the |
46 * Validate the minimum number of compiler threads needed to run the |
48 * JVM. The following configurations are possible. |
47 * JVM. The following configurations are possible. |