mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8001471: Klass::cast() does nothing
Remove function Klass::cast() and calls to it. Reviewed-by: dholmes, coleenp
This commit is contained in:
parent
a988fc0968
commit
4aad9b74e7
54 changed files with 343 additions and 351 deletions
|
@ -1775,7 +1775,7 @@ JRT_ENTRY(void, SharedRuntime::slow_arraycopy_C(oopDesc* src, jint src_pos,
|
|||
// The copy_array mechanism is awkward and could be removed, but
|
||||
// the compilers don't call this function except as a last resort,
|
||||
// so it probably doesn't matter.
|
||||
Klass::cast(src->klass())->copy_array((arrayOopDesc*)src, src_pos,
|
||||
src->klass()->copy_array((arrayOopDesc*)src, src_pos,
|
||||
(arrayOopDesc*)dest, dest_pos,
|
||||
length, thread);
|
||||
}
|
||||
|
@ -1788,8 +1788,8 @@ char* SharedRuntime::generate_class_cast_message(
|
|||
vframeStream vfst(thread, true);
|
||||
assert(!vfst.at_end(), "Java frame must exist");
|
||||
Bytecode_checkcast cc(vfst.method(), vfst.method()->bcp_from(vfst.bci()));
|
||||
Klass* targetKlass = Klass::cast(vfst.method()->constants()->klass_at(
|
||||
cc.index(), thread));
|
||||
Klass* targetKlass = vfst.method()->constants()->klass_at(
|
||||
cc.index(), thread);
|
||||
return generate_class_cast_message(objName, targetKlass->external_name());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue