comparison 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
comparison
equal deleted inserted replaced
5182:70aaaa83b93a 5183:e1e681a5558e
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 #ifdef GRAAL 50 int new_count;
51 int new_count = 1; 51 if (CompilationPolicyChoice == 4) {
52 #else 52 new_count = 1;
53 int new_count = MIN2(old_count, (int) (CompileThreshold / 2)); 53 } else {
54 #endif 54 new_count = MIN2(old_count, (int) (CompileThreshold / 2));
55 }
55 // prevent from going to zero, to distinguish from never-executed methods 56 // prevent from going to zero, to distinguish from never-executed methods
56 if (new_count == 0) new_count = 1; 57 if (new_count == 0) new_count = 1;
57 if (old_count != new_count) set(state(), new_count); 58 if (old_count != new_count) set(state(), new_count);
58 } 59 }
59 60