Mercurial > hg > graal-compiler
diff src/cpu/x86/vm/templateInterpreter_x86_64.cpp @ 10672:e7d07c9bb779
Removed priority compilation queue.
Fixed another race condition in the compilation queue.
Removed Graal-specific compilation policy.
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Tue, 09 Jul 2013 17:53:58 +0200 |
parents | 4b88e5c93f04 |
children | 6b0fd0964b87 |
line wrap: on
line diff
--- a/src/cpu/x86/vm/templateInterpreter_x86_64.cpp Tue Jul 09 11:21:06 2013 +0200 +++ b/src/cpu/x86/vm/templateInterpreter_x86_64.cpp Tue Jul 09 17:53:58 2013 +0200 @@ -304,18 +304,6 @@ // Helpers for commoning out cases in the various type of method entries. // -#ifdef GRAALVM - -void graal_initialize_time(JavaThread* thread) { - assert(ProfileInterpreter, "must be profiling interpreter"); - frame fr = thread->last_frame(); - assert(fr.is_interpreted_frame(), "must come from interpreter"); - assert(fr.interpreter_frame_method()->method_counters() != NULL, "need to initialize method counters"); - fr.interpreter_frame_method()->method_counters()->set_graal_invocation_time(os::javaTimeNanos()); -} - -#endif // GRAALVM - // increment invocation count & check for overflow // // Note: checking for negative value instead of overflow @@ -369,30 +357,6 @@ MethodCounters::interpreter_invocation_counter_offset())); } -#ifdef GRAALVM - if (CompilationPolicyChoice == 4) { - Label not_zero; - __ testl(rcx, InvocationCounter::count_mask_value); - __ jcc(Assembler::notZero, not_zero); - - __ push(rax); - __ push(rcx); - __ call_VM(noreg, CAST_FROM_FN_PTR(address, graal_initialize_time), rdx, false); - __ set_method_data_pointer_for_bcp(); - __ get_method(rbx); - __ pop(rcx); - __ pop(rax); - -#ifdef ASSERT - __ testl(rcx, InvocationCounter::count_mask_value); - __ jcc(Assembler::zero, not_zero); - __ stop("unexpected counter value in rcx"); -#endif - - __ bind(not_zero); - } -#endif // GRAALVM - // Update standard invocation counters __ movl(rcx, invocation_counter); __ incrementl(rcx, InvocationCounter::count_increment);