Date: Mon, 2 Aug 2010 23:47:29 -0700 From: Greg Lewis <glewis@eyesbeyond.com> To: David Xu <davidxu@freebsd.org> Cc: freebsd-java@freebsd.org Subject: Re: java nio channel selectors can use kqueue/kevent Message-ID: <20100803064729.GA3964@misty.eyesbeyond.com> In-Reply-To: <4C568F93.1070608@freebsd.org> References: <4C568F93.1070608@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. > Here is the patch: > http://people.freebsd.org/~davidxu/patch/jdk16_nio_kqueue.patch > > just cd into /usr/ports/jdk16, and type following commands: > > make extract > make patch > cd work > patch < this_patch_file > cd .. > make install > > note that the patch does not make kqueue method as default provider, > you should specify it on comand line like following: > > java > -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.KqueueSelectorProvider > <application class> > > > Regards, > David Xu > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100803064729.GA3964>