Browse Source

Segfault sorted

segfaults
Pjotr Prins 2 years ago
parent
commit
589cd69c15
  1. 2
      bio/core/bgzf/block.d
  2. 2
      bio/core/bgzf/inputstream.d

2
bio/core/bgzf/block.d

@ -106,9 +106,11 @@ class DecompressedBgzfBlock {
end_offset = end;
decompressed_data = buf;
}
/*
~this() {
stderr.writeln("destroy DecompressedBgzfBlock ",start_offset,":",end_offset," ",decompressed_data.sizeof);
};
*/
ulong start_offset;
ulong end_offset;

2
bio/core/bgzf/inputstream.d

@ -469,7 +469,7 @@ class BgzfInputStream : Stream {
n_tasks = max(n_tasks, buffer_size / BGZF_MAX_BLOCK_SIZE);
// n_tasks is 13 on my machine
_tasks = RoundBuf!BlockAux(n_tasks);
_task_buf = uninitializedArray!(DecompressionTask[])(n_tasks);
// _task_buf = uninitializedArray!(DecompressionTask[])(n_tasks);
_data = uninitializedArray!(ubyte[])(n_tasks * _max_block_size);

Loading…
Cancel
Save