Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/interpreter/invocationCounter.hpp Fri Jun 07 14:15:38 2013 +0200 +++ b/src/share/vm/interpreter/invocationCounter.hpp Fri Jun 07 14:36:45 2013 +0200 @@ -95,9 +95,9 @@ Action action() const { return _action[state()]; } int count() const { return _counter >> number_of_noncount_bits; } - int get_InvocationLimit() const { return InterpreterInvocationLimit >> number_of_noncount_bits; } - int get_BackwardBranchLimit() const { return InterpreterBackwardBranchLimit >> number_of_noncount_bits; } - int get_ProfileLimit() const { return InterpreterProfileLimit >> number_of_noncount_bits; } + static int get_InvocationLimit() { return InterpreterInvocationLimit >> number_of_noncount_bits; } + static int get_BackwardBranchLimit() { return InterpreterBackwardBranchLimit >> number_of_noncount_bits; } + static int get_ProfileLimit() { return InterpreterProfileLimit >> number_of_noncount_bits; } // Test counter using scaled limits like the asm interpreter would do rather than doing // the shifts to normalize the counter.