Summary: | [patch] java.nio channel selectors should use kqueue/kevent instead of poll | ||
---|---|---|---|
Product: | Base System | Reporter: | Nick Johnson <freebsd> |
Component: | java | Assignee: | freebsd-java (Nobody) <java> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | ||
Priority: | Normal | ||
Version: | 6.2-STABLE | ||
Hardware: | Any | ||
OS: | Any |
Description
Nick Johnson
2007-08-24 02:10:01 UTC
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 glewis 2010-08-07 18:44:12 UTC FreeBSD ports repository Modified files: java/jdk16 Makefile Added files: java/jdk16/files patch-nio-kqueue Log: . Add a new NIO selector that uses kqueue(2) and make it the default. PR: 115773 Submitted by: davidxu@ Revision Changes Path 1.179 +1 -1 ports/java/jdk16/Makefile 1.1 +699 -0 ports/java/jdk16/files/patch-nio-kqueue (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" State Changed From-To: open->closed I've committed David's patch. Thanks David! |