mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
8009565: [partfait] Null pointer deference in hotspot/src/share/vm/ci/ciEnv.cpp
Add guarantee() to get_instance_klass_for_declared_method_holder() Reviewed-by: kvn
This commit is contained in:
parent
eaa8ade37a
commit
5082c639fd
1 changed files with 1 additions and 0 deletions
|
@ -802,6 +802,7 @@ ciInstanceKlass* ciEnv::get_instance_klass_for_declared_method_holder(ciKlass* m
|
|||
// require checks to make sure the expected type was found. Given that this
|
||||
// only occurs for clone() the more extensive fix seems like overkill so
|
||||
// instead we simply smear the array type into Object.
|
||||
guarantee(method_holder != NULL, "no method holder");
|
||||
if (method_holder->is_instance_klass()) {
|
||||
return method_holder->as_instance_klass();
|
||||
} else if (method_holder->is_array_klass()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue