public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
* multidirectbufferIO and multibufferIO
@ 2006-09-25 18:42 Casey Marshall
  2006-09-26 22:26 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Casey Marshall @ 2006-09-25 18:42 UTC (permalink / raw)
  To: mauve-discuss

These two tests, in gnu.testlet.java.nio.channels.FileChannel, look a
bit bogus to me. They test if FileChannel artificially limits the number
of buffers processed in scattering/gathering read/write to 16, which is
definitely the case if the underlying implementation uses readv and
writev, but this limit isn't required otherwise (at least, there is no
mention of any limit in the JDK docs).

I don't see that much point in using readv/writev for file I/O, anyway,
especially because there do seem to be bugs in our implementation of it.
And at any rate, there's no guarantee that on some other system there
would be any limit like this, or if there is, that it would be the same
as it is on POSIXy systems.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-27  2:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-25 18:42 multidirectbufferIO and multibufferIO Casey Marshall
2006-09-26 22:26 ` Tom Tromey
2006-09-27  2:01   ` Casey Marshall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).