java/115773: [request] java.nio channel selectors should use kqueue/kevent instead of poll

David Xu davidxu at freebsd.org
Mon Aug 2 09:30:04 UTC 2010


The following reply was made to PR java/115773; it has been noted by GNATS.

From: David Xu <davidxu at freebsd.org>
To: bug-followup at freebsd.org, freebsd at 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
 


More information about the freebsd-java mailing list