mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
7048030: is_scavengable changes causing compiler to embed more constants
CiObject::can_be_constant() and should_be_constant() should use is_perm() instead of !is_scavengable() Reviewed-by: never, jrose
This commit is contained in:
parent
da271b804e
commit
65530c9100
2 changed files with 4 additions and 4 deletions
|
@ -187,7 +187,7 @@ jobject ciObject::constant_encoding() {
|
|||
// ciObject::can_be_constant
|
||||
bool ciObject::can_be_constant() {
|
||||
if (ScavengeRootsInCode >= 1) return true; // now everybody can encode as a constant
|
||||
return handle() == NULL || !is_scavengable();
|
||||
return handle() == NULL || is_perm();
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
@ -204,7 +204,7 @@ bool ciObject::should_be_constant() {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
return handle() == NULL || !is_scavengable();
|
||||
return handle() == NULL || is_perm();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue