diff options
author | kvn <none@none> | 2009-09-08 16:56:31 -0700 |
---|---|---|
committer | kvn <none@none> | 2009-09-08 16:56:31 -0700 |
commit | 76c844830b8652ddb814baa636cb48e53ac70886 (patch) | |
tree | 50c866c81ea77ce05d492e7e4fc7e10fcebaf399 /src/share/vm/opto/graphKit.cpp | |
parent | 19a40ccfbf4d199ae4a3d1fa28bc05ae4ad47f12 (diff) |
6880052: SIGSEGV in GraphKit::null_check_common()
Summary: Check that a klass is not NULL before the is_loaded() call.
Reviewed-by: never
Diffstat (limited to 'src/share/vm/opto/graphKit.cpp')
-rw-r--r-- | src/share/vm/opto/graphKit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |