Date: Mon, 2 Aug 2010 09:30:03 GMT From: David Xu <davidxu@freebsd.org> To: freebsd-java@FreeBSD.org Subject: Re: java/115773: [request] java.nio channel selectors should use kqueue/kevent instead of poll Message-ID: <201008020930.o729U30F036572@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR java/115773; it has been noted by GNATS. From: David Xu <davidxu@freebsd.org> To: bug-followup@freebsd.org, freebsd@spatula.net Cc: Subject: Re: java/115773: [request] java.nio channel selectors should use kqueue/kevent instead of poll Date: Mon, 02 Aug 2010 17:20:21 +0800 I have a patch to let nio use kqueue(), I have roughly tested it, and it works fine. 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 be default, you should specify it on comand line like following: java -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.KqueueSelectorProvider <application class> Regards, David Xu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008020930.o729U30F036572>