int totalBlockCount = dataBlockCount + checkBlockCount + crossCheckBlockCount;
long limit = totalBlockCount * CHKBlock.DATA_LENGTH +
Math.max(parent.codec.maxMemoryOverheadDecode(dataBlockCount, crossCheckBlockCount),
parent.codec.maxMemoryOverheadEncode(dataBlockCount, crossCheckBlockCount));
final int prio = NativeThread.LOW_PRIORITY;
parent.memoryLimitedJobRunner.queueJob(new MemoryLimitedJob(limit) {
@Override
public int getPriority() {
return prio;
}