Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
10639:08e06d4a9e73 | 10640:88672775a26c |
---|---|
46 // The carry bit now indicates that this counter had achieved a very | 46 // The carry bit now indicates that this counter had achieved a very |
47 // large value. Now reduce the value, so that the method can be | 47 // large value. Now reduce the value, so that the method can be |
48 // executed many more times before re-entering the VM. | 48 // executed many more times before re-entering the VM. |
49 int old_count = count(); | 49 int old_count = count(); |
50 int new_count; | 50 int new_count; |
51 if (CompilationPolicyChoice == 4) { | 51 #ifdef GRAALVM |
52 new_count = 1; | 52 new_count = 1; |
53 } else { | 53 #else |
54 new_count = MIN2(old_count, (int) (CompileThreshold / 2)); | 54 new_count = MIN2(old_count, (int) (CompileThreshold / 2)); |
55 } | 55 #endif |
56 // prevent from going to zero, to distinguish from never-executed methods | 56 // prevent from going to zero, to distinguish from never-executed methods |
57 if (new_count == 0) new_count = 1; | 57 if (new_count == 0) new_count = 1; |
58 if (old_count != new_count) set(state(), new_count); | 58 if (old_count != new_count) set(state(), new_count); |
59 } | 59 } |
60 | 60 |