Mercurial > hg > truffle
changeset 955:26fbe81d30cf
6880052: SIGSEGV in GraphKit::null_check_common()
Summary: Check that a klass is not NULL before the is_loaded() call.
Reviewed-by: never
author | kvn |
---|---|
date | Tue, 08 Sep 2009 16:56:31 -0700 |
parents | 0f1c19b7a52d |
children | 9a4e87ba1a90 |
files | src/share/vm/opto/graphKit.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/opto/graphKit.cpp Tue Sep 08 10:42:50 2009 -0700 +++ b/src/share/vm/opto/graphKit.cpp Tue Sep 08 16:56:31 2009 -0700 @@ -1126,7 +1126,7 @@ 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