LUCENE-9187: remove too-expensive assert from LZ4 HighCompressionHashTable

This commit is contained in:
Robert Muir 2020-01-28 11:45:43 -05:00
parent e504798a44
commit 4350efa932
No known key found for this signature in database
GPG Key ID: 817AE1DD322D7ECA
1 changed files with 0 additions and 8 deletions

View File

@ -290,13 +290,6 @@ public final class LZ4 {
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
void reset(byte[] bytes, int off, int len) {
Objects.checkFromIndexSize(off, len, bytes.length);
@ -319,7 +312,6 @@ public final class LZ4 {
Arrays.fill(hashTable, -1);
Arrays.fill(chainTable, (short) 0xFFFF);
}
assert assertReset();
this.bytes = bytes;
this.base = off;
this.next = off;