Mercurial > hg > graal-compiler
diff src/share/vm/interpreter/invocationCounter.cpp @ 10640:88672775a26c
Compilation policy fixes and changed default compilation policy.
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Mon, 08 Jul 2013 16:55:28 +0200 |
parents | 836a62f43af9 |
children | 359f7e70ae7f |
line wrap: on
line diff
--- a/src/share/vm/interpreter/invocationCounter.cpp Mon Jul 08 12:01:51 2013 +0200 +++ b/src/share/vm/interpreter/invocationCounter.cpp Mon Jul 08 16:55:28 2013 +0200 @@ -48,11 +48,11 @@ // executed many more times before re-entering the VM. int old_count = count(); int new_count; - if (CompilationPolicyChoice == 4) { +#ifdef GRAALVM new_count = 1; - } else { +#else 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);