equal
deleted
inserted
replaced
975 |
975 |
976 // ------------------------------------------------------------------ |
976 // ------------------------------------------------------------------ |
977 // ciMethod::set_not_compilable |
977 // ciMethod::set_not_compilable |
978 // |
978 // |
979 // Tell the VM that this method cannot be compiled at all. |
979 // Tell the VM that this method cannot be compiled at all. |
980 void ciMethod::set_not_compilable() { |
980 void ciMethod::set_not_compilable(const char* reason) { |
981 check_is_loaded(); |
981 check_is_loaded(); |
982 VM_ENTRY_MARK; |
982 VM_ENTRY_MARK; |
983 ciEnv* env = CURRENT_ENV; |
983 ciEnv* env = CURRENT_ENV; |
984 if (is_c1_compile(env->comp_level())) { |
984 if (is_c1_compile(env->comp_level())) { |
985 _is_c1_compilable = false; |
985 _is_c1_compilable = false; |
986 } else { |
986 } else { |
987 _is_c2_compilable = false; |
987 _is_c2_compilable = false; |
988 } |
988 } |
989 get_Method()->set_not_compilable(env->comp_level()); |
989 get_Method()->set_not_compilable(env->comp_level(), true, reason); |
990 } |
990 } |
991 |
991 |
992 // ------------------------------------------------------------------ |
992 // ------------------------------------------------------------------ |
993 // ciMethod::can_be_osr_compiled |
993 // ciMethod::can_be_osr_compiled |
994 // |
994 // |