# HG changeset patch # User Doug Simon # Date 1332965858 -7200 # Node ID 597eade2394ea9c4310b675c9af61aa7a38d4ba4 # Parent 20f8a3215fa8a0f16cd918b59474fdda02eef472# Parent 8d18583cf5f7b182c18de1fc8fede8717020f471 Merge. diff -r 20f8a3215fa8 -r 597eade2394e src/share/vm/interpreter/invocationCounter.cpp --- 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);