diff src/share/vm/oops/methodDataOop.hpp @ 1206:87684f1a88b5

6614597: Performance variability in jvm2008 xml.validation Summary: Fix incorrect marking of methods as not compilable. Reviewed-by: never
author kvn
date Mon, 01 Feb 2010 16:49:49 -0800
parents 89e0543e1737
children 576e77447e3c
line wrap: on
line diff
--- a/src/share/vm/oops/methodDataOop.hpp	Mon Feb 01 23:18:47 2010 +0100
+++ b/src/share/vm/oops/methodDataOop.hpp	Mon Feb 01 16:49:49 2010 -0800
@@ -1391,6 +1391,9 @@
   }
   void inc_decompile_count() {
     _nof_decompiles += 1;
+    if (decompile_count() > (uint)PerMethodRecompilationCutoff) {
+      method()->set_not_compilable();
+    }
   }
 
   // Support for code generation