mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8230841: Remove oopDesc::equals()
Reviewed-by: rkennke, tschatzl
This commit is contained in:
parent
cb50d3b4f3
commit
2d6874b861
52 changed files with 119 additions and 132 deletions
|
@ -212,7 +212,7 @@ oop ObjArrayKlass::multi_allocate(int rank, jint* sizes, TRAPS) {
|
|||
// Either oop or narrowOop depending on UseCompressedOops.
|
||||
void ObjArrayKlass::do_copy(arrayOop s, size_t src_offset,
|
||||
arrayOop d, size_t dst_offset, int length, TRAPS) {
|
||||
if (oopDesc::equals(s, d)) {
|
||||
if (s == d) {
|
||||
// since source and destination are equal we do not need conversion checks.
|
||||
assert(length > 0, "sanity check");
|
||||
ArrayAccess<>::oop_arraycopy(s, src_offset, d, dst_offset, length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue