diff src/share/vm/code/nmethod.cpp @ 5036:8e6db1a5c537

exit the VM when an endless recompilation is detected
author Christian Haeubl <christian.haeubl@oracle.com>
date Mon, 05 Mar 2012 12:01:38 -0800
parents 33df1aeaebbf
children 467de393651a
line wrap: on
line diff
--- a/src/share/vm/code/nmethod.cpp	Sun Mar 04 18:56:25 2012 -0800
+++ b/src/share/vm/code/nmethod.cpp	Mon Mar 05 12:01:38 2012 -0800
@@ -1178,7 +1178,9 @@
 }
 
 void nmethod::inc_decompile_count() {
+#ifndef GRAAL
   if (!is_compiled_by_c2()) return;
+#endif
   // Could be gated by ProfileTraps, but do not bother...
   methodOop m = method();
   if (m == NULL)  return;