8293816: CI: ciBytecodeStream::get_klass() is not consistent
Reviewed-by: dlong, kvn
This commit is contained in:
parent
4b297c1c16
commit
746f5f589d
@ -330,7 +330,7 @@ void ciInstanceKlass::print_impl(outputStream* st) {
|
||||
ciKlass::print_impl(st);
|
||||
GUARDED_VM_ENTRY(st->print(" loader=" INTPTR_FORMAT, p2i(loader()));)
|
||||
if (is_loaded()) {
|
||||
st->print(" loaded=true initialized=%s finalized=%s subklass=%s size=%d flags=",
|
||||
st->print(" initialized=%s finalized=%s subklass=%s size=%d flags=",
|
||||
bool_to_str(is_initialized()),
|
||||
bool_to_str(has_finalizer()),
|
||||
bool_to_str(has_subklass()),
|
||||
@ -345,8 +345,6 @@ void ciInstanceKlass::print_impl(outputStream* st) {
|
||||
if (_java_mirror) {
|
||||
st->print(" mirror=PRESENT");
|
||||
}
|
||||
} else {
|
||||
st->print(" loaded=false");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -233,6 +233,7 @@ jint ciKlass::access_flags() {
|
||||
void ciKlass::print_impl(outputStream* st) {
|
||||
st->print(" name=");
|
||||
print_name_on(st);
|
||||
st->print(" loaded=%s", (is_loaded() ? "true" : "false"));
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
@ -201,12 +201,8 @@ ciKlass* ciBytecodeStream::get_klass() {
|
||||
bool will_link;
|
||||
ciKlass* klass = get_klass(will_link);
|
||||
if (!will_link && klass->is_loaded()) { // klass not accessible
|
||||
if (klass->is_array_klass()) {
|
||||
assert(!klass->is_type_array_klass(), "");
|
||||
klass = ciEnv::unloaded_ciobjarrayklass();
|
||||
} else {
|
||||
klass = ciEnv::unloaded_ciinstance_klass();
|
||||
}
|
||||
VM_ENTRY_MARK;
|
||||
klass = CURRENT_ENV->get_unloaded_klass(_holder, klass->name());
|
||||
}
|
||||
return klass;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user