Tue, 08 Sep 2009 16:56:31 -0700
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 | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/opto/graphKit.cpp Tue Sep 08 10:42:50 2009 -0700 1.2 +++ b/src/share/vm/opto/graphKit.cpp Tue Sep 08 16:56:31 2009 -0700 1.3 @@ -1126,7 +1126,7 @@ 1.4 const Type *t = _gvn.type( value ); 1.5 1.6 const TypeOopPtr* tp = t->isa_oopptr(); 1.7 - if (tp != NULL && !tp->klass()->is_loaded() 1.8 + if (tp != NULL && tp->klass() != NULL && !tp->klass()->is_loaded() 1.9 // Only for do_null_check, not any of its siblings: 1.10 && !assert_null && null_control == NULL) { 1.11 // Usually, any field access or invocation on an unloaded oop type