[armedbear-cvs] r11988 - trunk/abcl/src/org/armedbear/lisp/util
Erik Huelsmann
ehuelsmann at common-lisp.net
Mon Jun 1 21:35:11 UTC 2009
Author: ehuelsmann
Date: Mon Jun 1 17:35:05 2009
New Revision: 11988
Log:
Remove the 'large block write' special case code:
it interacts badly with flushBbuf() and we seem to
have an issue with *small* writes/reads, not large ones.
Modified:
trunk/abcl/src/org/armedbear/lisp/util/RandomAccessCharacterFile.java
Modified: trunk/abcl/src/org/armedbear/lisp/util/RandomAccessCharacterFile.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/util/RandomAccessCharacterFile.java (original)
+++ trunk/abcl/src/org/armedbear/lisp/util/RandomAccessCharacterFile.java Mon Jun 1 17:35:05 2009
@@ -509,11 +509,6 @@
private final void write(byte[] b, int off, int len) throws IOException {
int pos = off;
- if (len > bbuf.limit()) {
- if (bbufIsDirty)
- flushBbuf(false);
- fcn.write(ByteBuffer.wrap(b, off, len));
- }
while (pos < off + len) {
int want = len;
if (want > bbuf.remaining()) {
More information about the armedbear-cvs
mailing list