diff src/share/vm/graal/graalCompiler.cpp @ 14881:1415a62ac8b2

allow to force bootstrap in tiered
author Bernhard Urban <bernhard.urban@jku.at>
date Sat, 29 Mar 2014 00:28:49 +0100
parents 56704532e1cd
children 4df6d7c966a2
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp	Fri Mar 28 18:33:05 2014 +0100
+++ b/src/share/vm/graal/graalCompiler.cpp	Sat Mar 29 00:28:49 2014 +0100
@@ -32,6 +32,7 @@
 #include "graal/graalRuntime.hpp"
 #include "runtime/arguments.hpp"
 #include "runtime/compilationPolicy.hpp"
+#include "runtime/globals_extension.hpp"
 
 GraalCompiler* GraalCompiler::_instance = NULL;
 
@@ -98,7 +99,11 @@
 
     if (UseCompiler) {
       _external_deopt_i2c_entry = create_external_deopt_i2c();
-      bool bootstrap = COMPILERGRAAL_PRESENT(TieredCompilation ? false : BootstrapGraal) NOT_COMPILERGRAAL(false);
+#ifdef COMPILERGRAAL
+      bool bootstrap = FLAG_IS_DEFAULT(BootstrapGraal) ? !TieredCompilation : BootstrapGraal;
+#else
+      bool bootstrap = false;
+#endif
       VMToCompiler::startCompiler(bootstrap);
       _initialized = true;
       CompilationPolicy::completed_vm_startup();