8024468: PPC64 (part 201): cppInterpreter: implement bytecode profiling

Implement profiling for c2 jit compilation. Also enable new cppInterpreter features.

Reviewed-by: kvn
This commit is contained in:
Goetz Lindenmaier 2013-09-15 15:28:58 +02:00
parent 34c8023949
commit 0732a739b3
11 changed files with 790 additions and 103 deletions

View file

@ -220,7 +220,7 @@ int CppInterpreter::native_entry(Method* method, intptr_t UNUSED, TRAPS) {
}
InvocationCounter *counter = mcs->invocation_counter();
counter->increment();
if (counter->reached_InvocationLimit()) {
if (counter->reached_InvocationLimit(mcs->backedge_counter())) {
CALL_VM_NOCHECK(
InterpreterRuntime::frequency_counter_overflow(thread, NULL));
if (HAS_PENDING_EXCEPTION)