mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
8005114: VM is crashing in ciKlass*ciObjArrayKlass::element_klass() if metaspaces are full
Missing test for loaded klass in c1 Reviewed-by: kvn
This commit is contained in:
parent
7d8f623180
commit
f13dbb00cf
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ ciType* LoadIndexed::exact_type() const {
|
||||||
|
|
||||||
ciType* LoadIndexed::declared_type() const {
|
ciType* LoadIndexed::declared_type() const {
|
||||||
ciType* array_type = array()->declared_type();
|
ciType* array_type = array()->declared_type();
|
||||||
if (array_type == NULL) {
|
if (array_type == NULL || !array_type->is_loaded()) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
assert(array_type->is_array_klass(), "what else?");
|
assert(array_type->is_array_klass(), "what else?");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue