From owner-freebsd-java@FreeBSD.ORG Wed Aug 11 09:00:22 2010 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17FD91065675 for ; Wed, 11 Aug 2010 09:00:22 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 07A2E8FC0A; Wed, 11 Aug 2010 09:00:22 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7B90KDr021912; Wed, 11 Aug 2010 09:00:21 GMT (envelope-from davidxu@freebsd.org) Message-ID: <4C62D724.9070901@freebsd.org> Date: Wed, 11 Aug 2010 17:00:20 +0000 From: David Xu User-Agent: Thunderbird 2.0.0.24 (X11/20100630) MIME-Version: 1.0 To: Greg Lewis References: <4C568F93.1070608@freebsd.org> <20100803064729.GA3964@misty.eyesbeyond.com> In-Reply-To: <20100803064729.GA3964@misty.eyesbeyond.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: java nio channel selectors can use kqueue/kevent X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2010 09:00:22 -0000 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. > I have updated patch for jdk16, some bugs have been fixed. http://people.freebsd.org/~davidxu/java/jdk16_nio_kqueue3.patch I don't know what is paper work, but anyway, this is first patch for openjdk7. ;-) http://people.freebsd.org/~davidxu/java/openjdk7_nio_kqueue.patch Regards, David Xu