diff src/share/vm/graal/graalEnv.cpp @ 7226:8a3efb8c831d

Merge.
author Christian Haeubl <haeubl@ssw.jku.at>
date Fri, 14 Dec 2012 13:02:49 +0100
parents 5d0bb7d52783
children a023cfaeb92e
line wrap: on
line diff
--- a/src/share/vm/graal/graalEnv.cpp	Fri Dec 14 12:05:35 2012 +0100
+++ b/src/share/vm/graal/graalEnv.cpp	Fri Dec 14 13:02:49 2012 +0100
@@ -442,6 +442,12 @@
       MethodData* mdp = method()->method_data();
       if (mdp != NULL) {
         mdp->inc_decompile_count();
+        if (mdp->decompile_count() > (uint)PerMethodRecompilationCutoff) {
+          // 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();
+        }
       }
 
       // All buffers in the CodeBuffer are allocated in the CodeCache.