mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8006613: adding reason to made_not_compilable
Reviewed-by: kvn, vlivanov
This commit is contained in:
parent
da5499f4ed
commit
014d9489bb
7 changed files with 22 additions and 15 deletions
|
@ -977,7 +977,7 @@ bool ciMethod::can_be_compiled() {
|
|||
// ciMethod::set_not_compilable
|
||||
//
|
||||
// Tell the VM that this method cannot be compiled at all.
|
||||
void ciMethod::set_not_compilable() {
|
||||
void ciMethod::set_not_compilable(const char* reason) {
|
||||
check_is_loaded();
|
||||
VM_ENTRY_MARK;
|
||||
ciEnv* env = CURRENT_ENV;
|
||||
|
@ -986,7 +986,7 @@ void ciMethod::set_not_compilable() {
|
|||
} else {
|
||||
_is_c2_compilable = false;
|
||||
}
|
||||
get_Method()->set_not_compilable(env->comp_level());
|
||||
get_Method()->set_not_compilable(env->comp_level(), true, reason);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue