changeset 5170:597eade2394e

Merge.
author Doug Simon <doug.simon@oracle.com>
date Wed, 28 Mar 2012 22:17:38 +0200
parents 20f8a3215fa8 (current diff) 8d18583cf5f7 (diff)
children 99ad84da5f99
files
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/interpreter/invocationCounter.cpp	Wed Mar 28 22:17:10 2012 +0200
+++ b/src/share/vm/interpreter/invocationCounter.cpp	Wed Mar 28 22:17:38 2012 +0200
@@ -47,7 +47,11 @@
   // large value.  Now reduce the value, so that the method can be
   // executed many more times before re-entering the VM.
   int old_count = count();
+#ifdef GRAAL
+  int new_count = 1;
+#else
   int new_count = MIN2(old_count, (int) (CompileThreshold / 2));
+#endif
   // prevent from going to zero, to distinguish from never-executed methods
   if (new_count == 0)  new_count = 1;
   if (old_count != new_count)  set(state(), new_count);