Mercurial > hg > graal-compiler
changeset 7995:37c18711a0df
8005114: VM is crashing in ciKlass*ciObjArrayKlass::element_klass() if metaspaces are full
Summary: missing test for loaded klass in c1
Reviewed-by: kvn
author | roland |
---|---|
date | Mon, 04 Feb 2013 09:11:21 +0100 |
parents | 9fae07c31641 |
children | 39901f2f1abe |
files | src/share/vm/c1/c1_Instruction.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/c1/c1_Instruction.cpp Fri Jan 25 16:50:33 2013 -0800 +++ b/src/share/vm/c1/c1_Instruction.cpp Mon Feb 04 09:11:21 2013 +0100 @@ -188,7 +188,7 @@ ciType* LoadIndexed::declared_type() const { ciType* array_type = array()->declared_type(); - if (array_type == NULL) { + if (array_type == NULL || !array_type->is_loaded()) { return NULL; } assert(array_type->is_array_klass(), "what else?");