diff src/share/vm/oops/methodData.cpp @ 7154:5d0bb7d52783

changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
author Doug Simon <doug.simon@oracle.com>
date Wed, 12 Dec 2012 21:36:40 +0100
parents e522a00b91aa
children 5fc51c1ecdeb
line wrap: on
line diff
--- a/src/share/vm/oops/methodData.cpp	Wed Dec 12 15:46:11 2012 +0100
+++ b/src/share/vm/oops/methodData.cpp	Wed Dec 12 21:36:40 2012 +0100
@@ -455,7 +455,7 @@
   return DataLayout::compute_size_in_bytes(cell_count);
 }
 
-#ifdef GRAAL
+#ifdef GRAALVM
 int MethodData::compute_extra_data_count(int data_size, int empty_bc_count) {
   if (!ProfileTraps) return 0;
 
@@ -500,7 +500,7 @@
   int extra_data_count = compute_extra_data_count(data_size, empty_bc_count);
   object_size += extra_data_count * DataLayout::compute_size_in_bytes(0);
 
-#ifndef GRAAL
+#ifndef GRAALVM
   // Add a cell to record information about modified arguments.
   int arg_size = method->size_of_parameters();
   object_size += DataLayout::compute_size_in_bytes(arg_size+1);
@@ -704,7 +704,7 @@
   int extra_size = extra_data_count * DataLayout::compute_size_in_bytes(0);
   object_size += extra_size;
 
-#ifndef GRAAL
+#ifndef GRAALVM
   // Add a cell to record information about modified arguments.
   // Set up _args_modified array after traps cells so that
   // the code for traps cells works.
@@ -728,7 +728,7 @@
 }
 
 bool MethodData::is_empty_data(int size_in_bytes, Bytecodes::Code code) {
-#ifdef GRAAL
+#ifdef GRAALVM
   return size_in_bytes == 0 && Bytecodes::can_trap(code);
 #else
   return size_in_bytes == 0;
@@ -762,12 +762,6 @@
 void MethodData::inc_decompile_count() {
   _nof_decompiles += 1;
   if (decompile_count() > (uint)PerMethodRecompilationCutoff) {
-#ifdef GRAAL
-    // TODO (chaeubl) enable this in the fastdebug build only once we are more stable
-    ResourceMark m;
-    tty->print_cr("WARN: endless recompilation of %s. Method was set to not compilable.", method()->name_and_sig_as_C_string());
-    //ShouldNotReachHere();
-#endif
     method()->set_not_compilable(CompLevel_full_optimization);
   }
 }