From e1ef47675242337eedb8f8b1b42fac63d64b180e Mon Sep 17 00:00:00 2001 From: kvn Date: Tue, 8 Sep 2009 16:56:31 -0700 Subject: [PATCH] 6880052: SIGSEGV in GraphKit::null_check_common() Summary: Check that a klass is not NULL before the is_loaded() call. Reviewed-by: never --- src/share/vm/opto/graphKit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/vm/opto/graphKit.cpp b/src/share/vm/opto/graphKit.cpp index 630a72ddf..a08ff89f9 100644 --- a/src/share/vm/opto/graphKit.cpp +++ b/src/share/vm/opto/graphKit.cpp @@ -1126,7 +1126,7 @@ Node* GraphKit::null_check_common(Node* value, BasicType type, const Type *t = _gvn.type( value ); const TypeOopPtr* tp = t->isa_oopptr(); - if (tp != NULL && !tp->klass()->is_loaded() + if (tp != NULL && tp->klass() != NULL && !tp->klass()->is_loaded() // Only for do_null_check, not any of its siblings: && !assert_null && null_control == NULL) { // Usually, any field access or invocation on an unloaded oop type -- GitLab