15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "code/relocInfo.hpp"
27 #include "compiler/compilerDefinitions.hpp"
28 #include "oops/metadata.hpp"
29 #include "runtime/os.hpp"
30 #include "interpreter/invocationCounter.hpp"
31 #include "runtime/arguments.hpp"
32 #include "runtime/flags/jvmFlag.hpp"
33 #include "runtime/flags/jvmFlagConstraintsCompiler.hpp"
34 #include "runtime/globals.hpp"
35 #include "runtime/globals_extension.hpp"
36 #include "utilities/powerOfTwo.hpp"
37
38 JVMFlag::Error AliasLevelConstraintFunc(intx value, bool verbose) {
39 if ((value <= 1) && (Arguments::mode() == Arguments::_comp || Arguments::mode() == Arguments::_mixed)) {
40 JVMFlag::printError(verbose,
41 "AliasLevel (" INTX_FORMAT ") is not "
42 "compatible with -Xcomp or -Xmixed\n",
43 value);
44 return JVMFlag::VIOLATES_CONSTRAINT;
45 } else {
46 return JVMFlag::SUCCESS;
47 }
48 }
49
50 /**
51 * Validate the minimum number of compiler threads needed to run the
52 * JVM. The following configurations are possible.
53 *
54 * 1) The JVM is build using an interpreter only. As a result, the minimum number of
55 * compiler threads is 0.
|
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "code/relocInfo.hpp"
27 #include "compiler/compilerDefinitions.hpp"
28 #include "oops/metadata.hpp"
29 #include "runtime/os.hpp"
30 #include "interpreter/invocationCounter.hpp"
31 #include "runtime/arguments.hpp"
32 #include "runtime/flags/jvmFlag.hpp"
33 #include "runtime/flags/jvmFlagConstraintsCompiler.hpp"
34 #include "runtime/globals.hpp"
35 #include "utilities/powerOfTwo.hpp"
36
37 JVMFlag::Error AliasLevelConstraintFunc(intx value, bool verbose) {
38 if ((value <= 1) && (Arguments::mode() == Arguments::_comp || Arguments::mode() == Arguments::_mixed)) {
39 JVMFlag::printError(verbose,
40 "AliasLevel (" INTX_FORMAT ") is not "
41 "compatible with -Xcomp or -Xmixed\n",
42 value);
43 return JVMFlag::VIOLATES_CONSTRAINT;
44 } else {
45 return JVMFlag::SUCCESS;
46 }
47 }
48
49 /**
50 * Validate the minimum number of compiler threads needed to run the
51 * JVM. The following configurations are possible.
52 *
53 * 1) The JVM is build using an interpreter only. As a result, the minimum number of
54 * compiler threads is 0.
|