mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6880052: SIGSEGV in GraphKit::null_check_common()
Check that a klass is not NULL before the is_loaded() call. Reviewed-by: never
This commit is contained in:
parent
d486b5f5fd
commit
f0f6f93143
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue