Mercurial > hg > truffle
comparison src/share/vm/interpreter/invocationCounter.hpp @ 9928:a9311ec68721
Avoid graph caching if immature or no profiling information was used for graph building.
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Fri, 07 Jun 2013 14:36:45 +0200 |
parents | bd7a7ce2e264 |
children | b2aea23ee2b1 |
comparison
equal
deleted
inserted
replaced
9927:81b298e0868b | 9928:a9311ec68721 |
---|---|
93 bool carry() const { return (_counter & carry_mask) != 0; } | 93 bool carry() const { return (_counter & carry_mask) != 0; } |
94 int limit() const { return CompileThreshold; } | 94 int limit() const { return CompileThreshold; } |
95 Action action() const { return _action[state()]; } | 95 Action action() const { return _action[state()]; } |
96 int count() const { return _counter >> number_of_noncount_bits; } | 96 int count() const { return _counter >> number_of_noncount_bits; } |
97 | 97 |
98 int get_InvocationLimit() const { return InterpreterInvocationLimit >> number_of_noncount_bits; } | 98 static int get_InvocationLimit() { return InterpreterInvocationLimit >> number_of_noncount_bits; } |
99 int get_BackwardBranchLimit() const { return InterpreterBackwardBranchLimit >> number_of_noncount_bits; } | 99 static int get_BackwardBranchLimit() { return InterpreterBackwardBranchLimit >> number_of_noncount_bits; } |
100 int get_ProfileLimit() const { return InterpreterProfileLimit >> number_of_noncount_bits; } | 100 static int get_ProfileLimit() { return InterpreterProfileLimit >> number_of_noncount_bits; } |
101 | 101 |
102 // Test counter using scaled limits like the asm interpreter would do rather than doing | 102 // Test counter using scaled limits like the asm interpreter would do rather than doing |
103 // the shifts to normalize the counter. | 103 // the shifts to normalize the counter. |
104 | 104 |
105 bool reached_InvocationLimit() const { return _counter >= (unsigned int) InterpreterInvocationLimit; } | 105 bool reached_InvocationLimit() const { return _counter >= (unsigned int) InterpreterInvocationLimit; } |