提交 85af6401 authored 作者: Noel Grandin's avatar Noel Grandin

fix bug in last commit

上级 f950d686
......@@ -644,7 +644,7 @@ class FileNioMemData {
int blocks = (int) (len >>> BLOCK_SIZE_SHIFT);
if (blocks != buffers.length) {
final AtomicReference<ByteBuffer>[] newBuffers = new AtomicReference[blocks];
System.arraycopy(buffers, 0, newBuffers, 0, Math.min(buffers.length, buffers.length));
System.arraycopy(buffers, 0, newBuffers, 0, Math.min(buffers.length, newBuffers.length));
for (int i = buffers.length; i < blocks; i++) {
newBuffers[i] = new AtomicReference<ByteBuffer>(COMPRESSED_EMPTY_BLOCK);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论