mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8340120: Remove redundant code in SegmentBulkOperations::mismatch
Reviewed-by: mcimadamore
This commit is contained in:
parent
89ca89cb26
commit
1a0a53883f
1 changed files with 0 additions and 9 deletions
|
@ -207,15 +207,6 @@ public final class SegmentBulkOperations {
|
|||
}
|
||||
}
|
||||
int remaining = length - offset;
|
||||
// 0...XXX000
|
||||
for (; remaining >= 8; remaining -= 8) {
|
||||
final long s = SCOPED_MEMORY_ACCESS.getLongUnaligned(src.sessionImpl(), src.unsafeGetBase(), src.unsafeGetOffset() + srcFromOffset + offset, !Architecture.isLittleEndian());
|
||||
final long d = SCOPED_MEMORY_ACCESS.getLongUnaligned(dst.sessionImpl(), dst.unsafeGetBase(), dst.unsafeGetOffset() + dstFromOffset + offset, !Architecture.isLittleEndian());
|
||||
if (s != d) {
|
||||
return start + offset + mismatch(s, d);
|
||||
}
|
||||
offset += 8;
|
||||
}
|
||||
|
||||
// 0...0X00
|
||||
if (remaining >= 4) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue