Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Aug 2010 17:09:30 +0800
From:      David Xu <davidxu@freebsd.org>
To:        Greg Lewis <glewis@eyesbeyond.com>
Cc:        freebsd-java@freebsd.org
Subject:   Re: java nio channel selectors can use kqueue/kevent
Message-ID:  <4C57DCCA.5070109@freebsd.org>
In-Reply-To: <20100803064729.GA3964@misty.eyesbeyond.com>
References:  <4C568F93.1070608@freebsd.org> <20100803064729.GA3964@misty.eyesbeyond.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

FYI, I have updated the patch:

http://people.freebsd.org/~davidxu/java/jdk16_nio_kqueue2.patch

Also, following patch will make kqueue as default provider:
http://people.freebsd.org/~davidxu/java/DefaultSelectorProvider.patch

I will look OpenJDK to see if I can help. ;-)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C57DCCA.5070109>