From f13dbb00cfa1bbcd5f2ae21949c2259b14fcfbf5 Mon Sep 17 00:00:00 2001 From: Roland Westrelin Date: Mon, 4 Feb 2013 09:11:21 +0100 Subject: [PATCH] 8005114: VM is crashing in ciKlass*ciObjArrayKlass::element_klass() if metaspaces are full Missing test for loaded klass in c1 Reviewed-by: kvn --- hotspot/src/share/vm/c1/c1_Instruction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot/src/share/vm/c1/c1_Instruction.cpp b/hotspot/src/share/vm/c1/c1_Instruction.cpp index 628091ce315..985cb098e6f 100644 --- a/hotspot/src/share/vm/c1/c1_Instruction.cpp +++ b/hotspot/src/share/vm/c1/c1_Instruction.cpp @@ -188,7 +188,7 @@ ciType* LoadIndexed::exact_type() const { 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?");