Mercurial > hg > truffle
comparison src/share/vm/interpreter/invocationCounter.cpp @ 12356:359f7e70ae7f
Reduce HotSpot diff and fix previous merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Fri, 11 Oct 2013 15:41:33 +0200 |
parents | 88672775a26c |
children |
comparison
equal
deleted
inserted
replaced
12355:cefad50507d8 | 12356:359f7e70ae7f |
---|---|
45 set_carry_flag(); | 45 set_carry_flag(); |
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 = MIN2(old_count, (int) (CompileThreshold / 2)); |
51 #ifdef GRAALVM | |
52 new_count = 1; | |
53 #else | |
54 new_count = MIN2(old_count, (int) (CompileThreshold / 2)); | |
55 #endif | |
56 // prevent from going to zero, to distinguish from never-executed methods | 51 // prevent from going to zero, to distinguish from never-executed methods |
57 if (new_count == 0) new_count = 1; | 52 if (new_count == 0) new_count = 1; |
58 if (old_count != new_count) set(state(), new_count); | 53 if (old_count != new_count) set(state(), new_count); |
59 } | 54 } |
60 | 55 |