Mercurial > hg > graal-compiler
diff src/share/vm/interpreter/invocationCounter.hpp @ 9992:b2aea23ee2b1
Only avoid graph caching when the graph was built without profiling information.
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Mon, 10 Jun 2013 15:17:10 +0200 |
parents | a9311ec68721 |
children | d8041d695d19 |
line wrap: on
line diff
--- a/src/share/vm/interpreter/invocationCounter.hpp Mon Jun 10 12:22:42 2013 +0200 +++ b/src/share/vm/interpreter/invocationCounter.hpp Mon Jun 10 15:17:10 2013 +0200 @@ -95,9 +95,9 @@ Action action() const { return _action[state()]; } int count() const { return _counter >> 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; } + 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; } // Test counter using scaled limits like the asm interpreter would do rather than doing // the shifts to normalize the counter.