8152590: C2: @Stable support doesn't always work w/ incremental inlining

Reviewed-by: kvn
This commit is contained in:
Vladimir Ivanov 2016-04-11 21:42:55 +03:00
parent 0c233de7ff
commit 7fc81004e3
20 changed files with 350 additions and 358 deletions

View file

@ -1112,7 +1112,7 @@ Node* PhaseStringOpts::fetch_static_field(GraphKit& kit, ciField* field) {
if( bt == T_OBJECT ) {
if (!field->type()->is_loaded()) {
type = TypeInstPtr::BOTTOM;
} else if (field->is_constant()) {
} else if (field->is_static_constant()) {
// This can happen if the constant oop is non-perm.
ciObject* con = field->constant_value().as_object();
// Do not "join" in the previous type; it doesn't add value,