mirror of https://github.com/apache/lucene.git
LUCENE-9187: remove too-expensive assert from LZ4 HighCompressionHashTable
This commit is contained in:
parent
e504798a44
commit
4350efa932
|
@ -290,13 +290,6 @@ public final class LZ4 {
|
||||||
Arrays.fill(chainTable, (short) 0xFFFF);
|
Arrays.fill(chainTable, (short) 0xFFFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean assertReset() {
|
|
||||||
for (int i = 0; i < chainTable.length; ++i) {
|
|
||||||
assert chainTable[i] == (short) 0xFFFF : i;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
void reset(byte[] bytes, int off, int len) {
|
void reset(byte[] bytes, int off, int len) {
|
||||||
Objects.checkFromIndexSize(off, len, bytes.length);
|
Objects.checkFromIndexSize(off, len, bytes.length);
|
||||||
|
@ -319,7 +312,6 @@ public final class LZ4 {
|
||||||
Arrays.fill(hashTable, -1);
|
Arrays.fill(hashTable, -1);
|
||||||
Arrays.fill(chainTable, (short) 0xFFFF);
|
Arrays.fill(chainTable, (short) 0xFFFF);
|
||||||
}
|
}
|
||||||
assert assertReset();
|
|
||||||
this.bytes = bytes;
|
this.bytes = bytes;
|
||||||
this.base = off;
|
this.base = off;
|
||||||
this.next = off;
|
this.next = off;
|
||||||
|
|
Loading…
Reference in New Issue