equal
deleted
inserted
replaced
833 *signature_handler = handler; |
833 *signature_handler = handler; |
834 } |
834 } |
835 |
835 |
836 |
836 |
837 void Method::print_made_not_compilable(int comp_level, bool is_osr, bool report, const char* reason) { |
837 void Method::print_made_not_compilable(int comp_level, bool is_osr, bool report, const char* reason) { |
|
838 assert(reason != NULL, "must provide a reason"); |
838 if (PrintCompilation && report) { |
839 if (PrintCompilation && report) { |
839 ttyLocker ttyl; |
840 ttyLocker ttyl; |
840 tty->print("made not %scompilable on ", is_osr ? "OSR " : ""); |
841 tty->print("made not %scompilable on ", is_osr ? "OSR " : ""); |
841 if (comp_level == CompLevel_all) { |
842 if (comp_level == CompLevel_all) { |
842 tty->print("all levels "); |
843 tty->print("all levels "); |
893 return is_not_c2_compilable(); |
894 return is_not_c2_compilable(); |
894 return false; |
895 return false; |
895 } |
896 } |
896 |
897 |
897 // call this when compiler finds that this method is not compilable |
898 // call this when compiler finds that this method is not compilable |
898 void Method::set_not_compilable(int comp_level, bool report, const char* reason) { |
899 void Method::set_not_compilable(const char* reason, int comp_level, bool report) { |
899 if (is_always_compilable()) { |
900 if (is_always_compilable()) { |
900 // Don't mark a method which should be always compilable |
901 // Don't mark a method which should be always compilable |
901 return; |
902 return; |
902 } |
903 } |
903 print_made_not_compilable(comp_level, /*is_osr*/ false, report, reason); |
904 print_made_not_compilable(comp_level, /*is_osr*/ false, report, reason); |
924 if (is_c2_compile(comp_level)) |
925 if (is_c2_compile(comp_level)) |
925 return is_not_c2_osr_compilable(); |
926 return is_not_c2_osr_compilable(); |
926 return false; |
927 return false; |
927 } |
928 } |
928 |
929 |
929 void Method::set_not_osr_compilable(int comp_level, bool report, const char* reason) { |
930 void Method::set_not_osr_compilable(const char* reason, int comp_level, bool report) { |
930 print_made_not_compilable(comp_level, /*is_osr*/ true, report, reason); |
931 print_made_not_compilable(comp_level, /*is_osr*/ true, report, reason); |
931 if (comp_level == CompLevel_all) { |
932 if (comp_level == CompLevel_all) { |
932 set_not_c1_osr_compilable(); |
933 set_not_c1_osr_compilable(); |
933 set_not_c2_osr_compilable(); |
934 set_not_c2_osr_compilable(); |
934 } else { |
935 } else { |