java nio channel selectors can use kqueue/kevent

David Xu davidxu at freebsd.org
Wed Aug 11 09:00:22 UTC 2010


Greg Lewis wrote:
> G'day David,
> 
> On Mon, Aug 02, 2010 at 05:27:47PM +0800, David Xu wrote:
>> I was suprised the java uses poll() on freebsd for its nio, while
>> others are using devpoll() or epoll(). I have spent one week to
>> work out a patch, and let it work with kqueue. I have tried to make
>> it better, but because the java nio selector are poll() centric
>> so something in the patch is not very perfect.
> 
> Thanks so much for doing this!  I'll try and get it into the jdk16 port
> as soon as possible.  Are you willing for this change to also go into the
> OpenJDK ports?  Or, more particularly, are you willing to contribute it
> to the main OpenJDK repo?  Unfortunately that will require some paper
> work.
>
I have updated patch for jdk16, some bugs have been fixed.
http://people.freebsd.org/~davidxu/java/jdk16_nio_kqueue3.patch

I don't know what is paper work, but anyway, this is first patch
for openjdk7. ;-)
http://people.freebsd.org/~davidxu/java/openjdk7_nio_kqueue.patch

Regards,
David Xu



More information about the freebsd-java mailing list