Icedtea - NIO2 Linux Asynchronous File IO.

Rupert Smith rupertlssmith at googlemail.com
Mon Jun 8 18:03:07 PDT 2009


Thanks.

I thought that EPollPort.c was just for sockets and not files? I'll look
into it a bit more, see if can understand how it all fits together.

Rupert

2009/6/8 Andrew John Hughes <gnu_andrew at member.fsf.org>

> 2009/6/8 Rupert Smith <rupertlssmith at googlemail.com>:
> > Hi,
> >
> > I have been checking out icedtea6 today, in order to examine its support
> for
> > nio2. Looking through the source, I cannot find an implementation of
> > asynchronous file IO for Linux, but I just wanted to check with someone
> in
> > the know if that is the case, as the code base is quite large, maybe I
> > overlooked it?
> >
> > I think 'SimpleAsynchronousFileChannelImpl.java' is the one that a Linux
> > build will use, which implements it by handing off IO events to a thread
> > pool, which is a portable solution not taking advantage of OS specific
> > asynchronous IO support.
> >
> > I have a partial implementation of asynchronous file IO, built on top of
> > libaio. If I wanted to contribute this to the project, would the correct
> > place to do so be as part of icedtea, or upstream as part of openjdk?
> >
> > Thanks for your answers.
> >
> > Rupert
> >
>
> Upstream OpenJDK is the place to contribute (specifically
> http://openjdk.java.net/projects/nio), but I think you'll find there
> is a GNU/Linux implementation in
> overlays/nio2/openjdk/jdk/src/solaris/native/sun/nio/ch/EPollPort.c
> --
> Andrew :-)
>
> Free Java Software Engineer
> Red Hat, Inc. (http://www.redhat.com)
>
> Support Free Java!
> Contribute to GNU Classpath and the OpenJDK
> http://www.gnu.org/software/classpath
> http://openjdk.java.net
>
> PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
> Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090609/44f79e46/attachment.html 


More information about the distro-pkg-dev mailing list