Mercurial > hg > graal-compiler
diff src/share/vm/interpreter/invocationCounter.cpp @ 5183:e1e681a5558e
fix PriorityQueue, enable PriorityQueue and CacheGraphs
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Mon, 02 Apr 2012 19:46:48 +0200 |
parents | 8d18583cf5f7 |
children | 836a62f43af9 |
line wrap: on
line diff
--- a/src/share/vm/interpreter/invocationCounter.cpp Mon Apr 02 12:19:18 2012 +0200 +++ b/src/share/vm/interpreter/invocationCounter.cpp Mon Apr 02 19:46:48 2012 +0200 @@ -47,11 +47,12 @@ // 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 + int new_count; + if (CompilationPolicyChoice == 4) { + new_count = 1; + } else { + new_count = MIN2(old_count, (int) (CompileThreshold / 2)); + } // 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);