comparison src/share/vm/ci/ciMethod.cpp @ 7998:6a51fc70a15e

8006613: adding reason to made_not_compilable Reviewed-by: kvn, vlivanov Contributed-by: Igor Ignatyev <igor.ignatyev@oracle.com>
author vlivanov
date Tue, 05 Feb 2013 08:25:51 -0800
parents fcc9e7681d63
children 5fc51c1ecdeb 16885e702c88
comparison
equal deleted inserted replaced
7997:8bd61471a109 7998:6a51fc70a15e
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 //