Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/compilationPolicy.cpp @ 7684:bbf97d6688d3
cleanup for the inlining policies
added devirtualization of invokes
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Fri, 01 Feb 2013 16:57:40 +0100 |
parents | 8a3efb8c831d |
children | b8f261ba79c6 |
comparison
equal
deleted
inserted
replaced
7393:5f00bf5a530d | 7684:bbf97d6688d3 |
---|---|
490 | 490 |
491 void GraalCompPolicy::method_back_branch_event(methodHandle m, int bci, JavaThread* thread) { | 491 void GraalCompPolicy::method_back_branch_event(methodHandle m, int bci, JavaThread* thread) { |
492 int hot_count = m->backedge_count(); | 492 int hot_count = m->backedge_count(); |
493 const char* comment = "backedge_count"; | 493 const char* comment = "backedge_count"; |
494 | 494 |
495 if (is_compilation_enabled() && !m->is_not_osr_compilable() && can_be_compiled(m)) { | 495 if (is_compilation_enabled() && !m->is_not_osr_compilable() && can_be_compiled(m) && !m->queued_for_compilation() && m->code() == NULL) { |
496 if (TraceCompilationPolicy) { | 496 if (TraceCompilationPolicy) { |
497 tty->print("backedge invocation trigger: "); | 497 tty->print("backedge invocation trigger: "); |
498 m->print_short_name(tty); | 498 m->print_short_name(tty); |
499 tty->print_cr(" ( interpreted " INTPTR_FORMAT ", size=%d, hotCount=%d ) ", (address)m(), m->code_size(), hot_count); | 499 tty->print_cr(" ( interpreted " INTPTR_FORMAT ", size=%d, hotCount=%d ) ", (address)m(), m->code_size(), hot_count); |
500 } | 500 } |