if (cmds == null) { throw new LargeObjectException.OutOfMemory(new OutOfMemoryError()); } catch (OutOfMemoryError tooBig) { throw new LargeObjectException.OutOfMemory(tooBig);
@Override public String getMessage() { return MessageFormat.format(JGitText.get().largeObjectOutOfMemory, getObjectName()); } }
throw new LargeObjectException.OutOfMemory(tooBig);
if (cmds == null) { throw new LargeObjectException.OutOfMemory(new OutOfMemoryError()); } catch (OutOfMemoryError tooBig) { throw new LargeObjectException.OutOfMemory(tooBig);
throw new LargeObjectException.OutOfMemory(tooBig);
if (cmds == null) { throw new LargeObjectException.OutOfMemory(new OutOfMemoryError()); } catch (OutOfMemoryError tooBig) { throw new LargeObjectException.OutOfMemory(tooBig);
data = new byte[(int)sz]; } catch (OutOfMemoryError e) { throw new LargeObjectException.OutOfMemory(e);
buf = new byte[(int) sz]; } catch (OutOfMemoryError notEnoughHeap) { throw new LargeObjectException.OutOfMemory(notEnoughHeap);
buf = new byte[(int) sz]; } catch (OutOfMemoryError notEnoughHeap) { throw new LargeObjectException.OutOfMemory(notEnoughHeap);
return cloneArray(cached); } catch (OutOfMemoryError tooBig) { throw new LargeObjectException.OutOfMemory(tooBig);
return cloneArray(cached); } catch (OutOfMemoryError tooBig) { throw new LargeObjectException.OutOfMemory(tooBig);
private DeltaIndex index(DeltaWindowEntry ent) throws MissingObjectException, IncorrectObjectTypeException, IOException, LargeObjectException { DeltaIndex idx = ent.index; if (idx == null) { checkLoadable(ent, estimateIndexSize(ent)); try { idx = new DeltaIndex(buffer(ent)); } catch (OutOfMemoryError noMemory) { LargeObjectException.OutOfMemory e; e = new LargeObjectException.OutOfMemory(noMemory); e.setObjectId(ent.object); throw e; } if (maxMemory != 0) loaded += idx.getIndexSize() - idx.getSourceSize(); ent.index = idx; } return idx; }
private DeltaIndex index(DeltaWindowEntry ent) throws MissingObjectException, IncorrectObjectTypeException, IOException, LargeObjectException { DeltaIndex idx = ent.index; if (idx == null) { checkLoadable(ent, estimateIndexSize(ent)); try { idx = new DeltaIndex(buffer(ent)); } catch (OutOfMemoryError noMemory) { LargeObjectException.OutOfMemory e; e = new LargeObjectException.OutOfMemory(noMemory); e.setObjectId(ent.object); throw e; } if (maxMemory != 0) loaded += idx.getIndexSize() - idx.getSourceSize(); ent.index = idx; } return idx; }
private static byte[] newResult(long sz) { if (Integer.MAX_VALUE < sz) throw new LargeObjectException.ExceedsByteArrayLimit(); try { return new byte[(int) sz]; } catch (OutOfMemoryError noMemory) { throw new LargeObjectException.OutOfMemory(noMemory); } }
private static byte[] newResult(long sz) { if (Integer.MAX_VALUE < sz) throw new LargeObjectException.ExceedsByteArrayLimit(); try { return new byte[(int) sz]; } catch (OutOfMemoryError noMemory) { throw new LargeObjectException.OutOfMemory(noMemory); } }
/** * Construct a wrapper around the original OutOfMemoryError. * * @param cause * the original root cause. */ public OutOfMemory(OutOfMemoryError cause) { initCause(cause); }
/** * Construct a wrapper around the original OutOfMemoryError. * * @param cause * the original root cause. */ public OutOfMemory(OutOfMemoryError cause) { initCause(cause); }
@Override public String getMessage() { return MessageFormat.format(JGitText.get().largeObjectOutOfMemory, getObjectName()); } }
throw new LargeObjectException.OutOfMemory(tooBig);
data = new byte[(int)sz]; } catch (OutOfMemoryError e) { throw new LargeObjectException.OutOfMemory(e);